Skip to main content
Travis test status: [![Build Status](https://travis-ci.org/nicholasserra/python-ultramemcached.svg?branch=master)](https://travis-ci.org/nicholasserra/python-ultramemcached)

#Overview
A drop in replacement for python-memcached to use [ultramemcache](https://github.com/esnme/ultramemcache) as an interface instead of python sockets. Requires ultramemcache. Usage is the same as [python-memcached](http://www.tummy.com/Community/software/python-memcached/) .

#Installation
Install via pip.
```
pip install python-ultramemcached
```

#Usage
```python
import ultramemcache
mc = ultramemcache.Client(['127.0.0.1:11211'], debug=0)

mc.set("some_key", "Some value")
value = mc.get("some_key")

mc.set("another_key", 3)
mc.delete("another_key")

mc.set("key", "1") # note that the key used for incr/decr must be a string.
mc.incr("key")
mc.decr("key")
````

#Usage with Django
To use this package with Django, implement your own subclass of Django's `BaseMemcachedCache` backend like this:

```python
from django.core.cache.backends.memcached import BaseMemcachedCache

class UltraMemcachedCache(BaseMemcachedCache):
"An implementation of a cache binding using python-ultramemcached"
def __init__(self, server, params):
import ultramemcache
super(MemcachedCache, self).__init__(server, params,
library=ultramemcache,
value_not_found_exception=ValueError)
```

Metadata

Release files for python-ultramemcached 0.0.4

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

Source distribution (sdist)

Source distribution for python-ultramemcached 0.0.4
File Size Uploaded Provenance
python-ultramemcached-0.0.4.tar.gz 12.2 kB Without provenance Details

Release files / python-ultramemcached-0.0.4.tar.gz

Download URL python-ultramemcached-0.0.4.tar.gz
Size 12.2 kB
Tags Source
SHA-256 checksum
How to use checksums
bfae69ce29f1176610061325af1fdb74983e5dbefd0c8f6b1f5a94bf907244b4
BLAKE2b-256 checksum
How to use checksums
27b809587406a2650708becf23d4c4080f395b59f333d93229bfa0dea7d494f6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for python-ultramemcached 0.0.4

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