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