Skip to main content

nameko-cache

Cache for nameko services

Installation

pip install nameko-cache

Usage

app.py

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

    @rpc
    @cached(timeout=10)
    def hello(name):
        return 'hello {} at {}'.format(name, datetime.now())


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

config.yml

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

Metadata

Release files for nameko-cache 1.0.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nameko-cache 1.0.6
File Size Uploaded Provenance Actions
nameko-cache-1.0.6.win32.zip 3.7 kB Without provenance Details for nameko-cache-1.0.6.win32.zip

Built distribution (wheel)

Table of built distributions (wheels) for nameko-cache 1.0.6
File Interpreter ABI Platform Actions
nameko_cache-1.0.6-py2-none-any.whl Python 2 none any Details for nameko_cache-1.0.6-py2-none-any.whl

Total release size: 6.0 kB

Release files / nameko-cache-1.0.6.win32.zip

Download URL nameko-cache-1.0.6.win32.zip
Size 3.7 kB
Tags Source
SHA-256 checksum
How to use checksums
06cbdf25e41a2151e11679ce51e5330cd56a7f89651ca459d7937a1ce6ceba7f
BLAKE2b-256 checksum
How to use checksums
f1ccdaede5e011d1e909c04bc151f608233ed30c93281551624a1913e896aa75
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / nameko_cache-1.0.6-py2-none-any.whl

Download URL nameko_cache-1.0.6-py2-none-any.whl
Size 2.3 kB
Tags Python 2
SHA-256 checksum
How to use checksums
9102d6fe5c448a152362335edeaf2b1e9490110ba442f4386c50eda6f5b34869
BLAKE2b-256 checksum
How to use checksums
2beb99be5945442eedc51ee6c982c2c2f184c8612c1a43dfc98da479e1a5c944
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for nameko-cache 1.0.6

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.6 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page