Skip to main content

Cache for nameko services

Project description


Cache for nameko services


pip install nameko-cache


from datetime import datetime
from nameko.rpc import rpc
from nameko_redisy import Redis
from nameko_cache import cached, delete_cached

class FooService(object):
    name = 'foo_service'

    cache = Redis('CACHE_REDIS_URI')

    def hello(name):
        return 'hello {} at {}'.format(name,

    def world(self):
        delete_cached(self.hello, ['john'])


AMQP_URI: 'pyamqp://guest:guest@localhost'
CACHE_REDIS_URI: 'redis://'

Project details

Download files

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

Files for nameko-cache, version 1.0.6
Filename, size File type Python version Upload date Hashes
Filename, size nameko_cache-1.0.6-py2-none-any.whl (2.3 kB) File type Wheel Python version py2 Upload date Hashes View
Filename, size (3.7 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page