Skip to main content

sparta-memcached

Sparta memcached library.

Usage

import pylibmc
import sparta.memcached

alice_cache = sparta.memcached.SpartaCacheWrapper(
    pylibmc.Client(
        ["127.0.0.1:11211"],
        binary=True,
        behaviors={"tcp_nodelay": True, "ketama": True, "no_block": True, "cas": True}
    ),
    key_prefix="alice/",
)

bob_cache = sparta.memcached.SpartaCacheWrapper(
    pylibmc.Client(
        ["127.0.0.1:11211"],
        binary=True,
        behaviors={"tcp_nodelay": True, "ketama": True, "no_block": True, "cas": True}
    ),
    key_prefix="bob/",
)

your_value = ...
alice_cache.set("your_key", your_value)
assert alice_cache.get("your_key") == your_value
assert alice_cache.get("your_key") != bob_cache.get("your_key")

Release files for sparta-memcached 0.2.2

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

Source distribution (sdist)

Source distribution for sparta-memcached 0.2.2
File Size Uploaded
sparta-memcached-0.2.2.tar.gz 7.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for sparta-memcached 0.2.2
File Interpreter ABI Platform
sparta_memcached-0.2.2-py3-none-any.whl Python 3 none any Details

Total release size: 16.0 kB

Release files / sparta-memcached-0.2.2.tar.gz

Download URL sparta-memcached-0.2.2.tar.gz
Size 7.2 kB
Tags Source
SHA-256 checksum
How to use checksums
ba51020b0e9e1a6ec0ef2c8b5236c5af2efddde27aaca10e722c15ed80fde106
BLAKE2b-256 checksum
How to use checksums
e553f5c5f7c16e955ba8f7b979b06c6bdcd30ba4088089fc7e64bc45ce385bca
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.3

Release files / sparta_memcached-0.2.2-py3-none-any.whl

Download URL sparta_memcached-0.2.2-py3-none-any.whl
Size 8.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9bf7da848f35aaf31ffa7c29bce012ebef0b1cf4a48e9ae53d7b79b1c4a83677
BLAKE2b-256 checksum
How to use checksums
361bd9fdf0a4cbb3c173d6864ba9c432ad4125b11463dc15ccc9d9dd80227acc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.3

Release history Release notifications | RSS feed

This release

0.2.2 This release

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

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