Skip to main content

Install

Use pip:

pip install dogpile_cache_native_redis

Usage

See the example.

Code:

from dogpile.cache import make_region

region = make_region().configure(
    'native_redis',
    # arguments are same as redis backend.
    arguments = {
        'host': "127.0.0.1",
    }
)

region.set("test", b"value")
region.set_multi({"key1": b"value1", "key2": 100})
print(region.get("test"))
print(region.get_multi(["key1", "key2"]))

Result:

$ python main.py
b'value'
[b'value1', b'100']

See with redis-cli:

$ redis-cli
127.0.0.1:6379> get test
"value"
127.0.0.1:6379> mget key1 key2
1) "value1"
2) "100"

Release files for dogpile_cache_native_redis 0.1

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

Built distribution (wheel)

Table of built distributions (wheels) for dogpile_cache_native_redis 0.1
File Interpreter ABI Platform
dogpile_cache_native_redis-0.1-py2.py3-none-any.whl Python 3, Python 2 none any Details

Release files / dogpile_cache_native_redis-0.1-py2.py3-none-any.whl

Download URL dogpile_cache_native_redis-0.1-py2.py3-none-any.whl
Size 4.4 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
4e4c0fac953bfd52692407c404153e1d861119f341a2dc3f6cd0397d5d346130
BLAKE2b-256 checksum
How to use checksums
52d92f7fbe66f6a49b8df5ed462395acdfb7e2e2a86d3e14ae1c5ac015b31a62
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1 This release

1 release file

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