old_contents: # import mongodb driver
  import pymongo
  import time
  
  # import python-cache pycache package
  from pycache.Adapter import MongoItemPool
  from pycache import CacheItem
  
  # create mongo client
  client = pymongo.MongoClient(host="192.168.99.100", port=27017)
  
  # init MongoItemPool with Mongo client
  pool = MongoItemPool(client)
  item = CacheItem()
  
  
  # A common way to do key-val caching
  
  item.set("mykey","myval")
  pool.save(item)
  ret_item = pool.get_item("mykey")
  print(ret_item.get(), ret_item.get_key()) # "mykey", "myval"
  
  print("--")
  
  # set expire
  item.set("mykey","myval")
  item.expires_after(1)
  print("sleep 2 seconds")
  time.sleep(2)
  print("isHit:",item.is_hit()) # "False"
  pool.save(item)
  
  ret_item = pool.get_item("mykey")
  print(ret_item.is_hit(), ret_item.get(), ret_item.get_key())
  # is_hit: True, mongodb's expiration need more time for expiration thread
new_contents: # import mongodb driver
  import pymongo
  import time
  
  # import python-cache pycache package
  from pycache.Adapter import MongoItemPool
  from pycache import CacheItem
  
  # create mongo client
  client = pymongo.MongoClient(host="192.168.99.100", port=27017)
  
  # init MongoItemPool with Mongo client
  pool = MongoItemPool(client, DB="ANA", COLLECTION="Collector")
  item = CacheItem()
  
  
  # A common way to do key-val caching
  
  item.set("mykey","myval")
  pool.save(item)
  ret_item = pool.get_item("mykey")
  print(ret_item.get(), ret_item.get_key()) # "mykey", "myval"
  
  print("--")
  
  # set expire
  item.set("mykey","myval")
  item.expires_after(1)
  print("sleep 2 seconds")
  time.sleep(2)
  print("isHit:",item.is_hit()) # "False"
  pool.save(item)
  
  ret_item = pool.get_item("mykey")
  print(ret_item.is_hit(), ret_item.get(), ret_item.get_key())
  # is_hit: True, mongodb's expiration need more time for expiration thread
subject: add MongoDB DB/Collection settings