/storage-cache

Storage Cache is a Python library that saves processing cost & time. By creating keys in in-memory data storages that represent what objects exist in a cloud storage (whether it's Google Cloud Storage, S3, etc), you can check whether a key exist in your in-memory storage rather than calling an API to check your cloud storage.

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

Storage Cache

Installation

pip install storage-cache

How to use

from storage_cache import StorageCacheFactory
from storage_cache.types import REDIS_STORAGE_CACHE

StorageCache = StorageCacheFactory.factory(REDIS_STORAGE_CACHE)
storage_cache = StorageCache(
    <redis_host>, <redis_port>, <redis_password>, <redis_db>, <key_format>)