

def store(self, key, value):
    from bson.binary import Binary
    now = datetime.datetime.utcnow()
    blob = Binary(pickle.dumps(value))
    self.col.insert({
        'created': now,
        '_id': key,
        'value': blob,
    })

dataset/ETHPy150Open tweepy/tweepy/tweepy/cache.py MongodbCache.store/original