Skip to main content

README: NSMemcached 0.2.1

Author:

Nicolas Perriault

Contact:

np at akei com

Abstract

NSMemcached is simple yet efficient Python implementation of a namespaced client for memcached on top of the python-memcached package.

Quick Start

Sample usage:

>>> from nsmemcached import Client
>>> ns_client = Client(['127.0.0.1:11211'])
>>> ns_client.set('foo', 'bar', ns='barspace')
True
>>> ns_client.get('foo', ns='barspace')
bar
>>> ns_client.get('foo')
None
>>> ns_client.clear_ns('barspace')
>>> ns_client.get('foo', ns='barspace')
None

Yes, that simple.

Caveats

Namespace keys are stored in dedicated keys, so every time you request a namespaced item you’ll make two queries to the memcached server instead of one, so expect a tiny slowdown compared to the way of using the standard, non-namespaced memcached API.

Dependencies and Compatibility

NSMemcached requires the use of Python 2.4 or more recent.

Installing python-memcached package is required in order to use this library, as well as a working memcached server instance, obviously.

NSMemcached is fully compatible with the API of the standard python-memcached client.

License

This code is released under the terms of the MIT License.

Author

Nicolas Perriault, AKEI, <np at akei com>

Metadata

Release files for NSMemcached 0.2.1

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

Source distribution (sdist)

Source distribution for NSMemcached 0.2.1
File Size Uploaded Provenance Actions
NSMemcached-0.2.1.tar.gz 3.1 kB Without provenance Details for NSMemcached-0.2.1.tar.gz

Release files / NSMemcached-0.2.1.tar.gz

Download URL NSMemcached-0.2.1.tar.gz
Size 3.1 kB
Tags Source
SHA-256 checksum
How to use checksums
f91a741d79b9854a82e9ed03b5cb76e04a3bff510beb084145c5472da05d8f1e
BLAKE2b-256 checksum
How to use checksums
f9779f4b6beed8594712d146beccc622e5c03635e6b1d592115989f6434755ca
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for NSMemcached 0.2.1

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.

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