Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)

src/e/a/easyirc-0.1.1/easyirc/storage.py   easyirc(Download)
 
from cacheobj.storage import Storage
from cacheobj.backend import BaseBackend
from cacheobj.backend.file import JsonFileBackend
 
def make_storage(backend, prefix):
    if not isinstance(backend, BaseBackend):
        backend = JsonFileBackend(backend)
    return Storage(backend, prefix)