namespaced subset of your redis keyspace
Project description
redis-namespace
redis-namespace for python
Redis namespace provides an interface to a namespaced subset of your redis keyspace (e.g., keys with a common beginning), and requires the redis-py.
import redis
from redis_namespace import StrictRedis
redis_connection = redis.StrictRedis()
namespaced_redis = StrictRedis(namespace='ns:')
namespaced_redis.set('foo', 'bar') # redis_connection.set('ns:foo', 'bar')
namespaced_redis.get('foo')
redis_connection.get('ns:foo')
namespaced_redis.delete('foo')
namespaced_redis.get('foo')
redis_connection.get('ns:foo')
Installation
pip install redis-namespace
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
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file redis_namespace-3.0.1.1.tar.gz.
File metadata
- Download URL: redis_namespace-3.0.1.1.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
244cdd189f263402cd29e5c9dad09713d4754e798073e86ad15c0650c76b62cf
|
|
| MD5 |
f88750bda5ab5345c3a8711b2f9e7134
|
|
| BLAKE2b-256 |
f29e1bc0601f7bbc071cfae549adf0317add63944c2f6dbddcc8773ce5d672a8
|
File details
Details for the file redis_namespace-3.0.1.1-py3-none-any.whl.
File metadata
- Download URL: redis_namespace-3.0.1.1-py3-none-any.whl
- Upload date:
- Size: 5.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
49a6fbf03093737ad40e05933f2c9cd57e12f30740f83198d5ae3e3b0fe1ce2d
|
|
| MD5 |
aefb19ad2a4e9c74bb725d822429e5ee
|
|
| BLAKE2b-256 |
55e91ed958be59589c3d17889e00d0c55103cb5e38341de217a8021d544d19f9
|
File details
Details for the file redis_namespace-3.0.1.1-py2-none-any.whl.
File metadata
- Download URL: redis_namespace-3.0.1.1-py2-none-any.whl
- Upload date:
- Size: 5.8 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6824b73d4dc7880f7e5e28beea0b3f67e12aa081d3ab0f083f6f21d1d22a7676
|
|
| MD5 |
447104bed3fb241b072bc78c6d584b1d
|
|
| BLAKE2b-256 |
a19fcdf67a440602daa7bacf86b8acdebdb06036d65185706d6d5111f4c279da
|