Skip to main content

An easy-to-use nameko cache

Project description

nameko-cache

An easy-to-use nameko cache

Some code references from repo nameko-cachetools

Install

pip install nameko-cachelib

Example

    class Service:
        name = "service"

        cached_service = CacheRpcProxy("service")

        @rpc
        def cached(self, *args, **kwargs):
            return self.cached_service.some_method(*args, **kwargs)

TODO list

memory cache

single flight

redis cache

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nameko-cachelib-0.1.1.tar.gz (4.5 kB view hashes)

Uploaded Source

Built Distribution

nameko_cachelib-0.1.1-py3-none-any.whl (4.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page