示例#1
0
def test_caching_read():
    db = Flata(storage=CachingMiddleware(MemoryStorage))
    assert not db.all()
示例#2
0
def readJson(path_db):
    db = Flata(path_db, storage=JSONStorage)
    dic = db.all()
    return dic