Skip to content

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.

License

Notifications You must be signed in to change notification settings

HenleyKuang/storage-cache

Repository files navigation

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>)

About

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.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published