Skip to content

feat: add memcache distributed cache support - #7

Merged
petercinibulk merged 2 commits into
mainfrom
feature/memcache-support
Jun 23, 2026
Merged

petercinibulk merged 2 commits into
mainfrom
feature/memcache-support

Conversation

@petercinibulk

Copy link
Copy Markdown
Owner

What changed

Adds Memcached L2 cache support through a new MemcachedDistributedCache provider backed by aiomcache.

Details

  • Adds the cache_sync.providers.memcache provider package and lazy public export.
  • Adds a memcache optional extra and includes it in the all provider set.
  • Serializes values with the existing serializer interface, defaulting to PickleSerializer like Redis.
  • Converts cache keys to Memcached-safe bytes and hashes keys or prefixes that exceed Memcached key constraints.
  • Documents installation, public API, provider capabilities, and README usage.

Validation

  • uv run ruff format
  • uv run ruff check
  • uv run ty check
  • uv run --group dev python -m pytest

@petercinibulk petercinibulk changed the title [codex] add memcache distributed cache support feat: add memcache distributed cache support Jun 23, 2026
@petercinibulk
petercinibulk marked this pull request as ready for review June 23, 2026 13:52
@petercinibulk
petercinibulk merged commit e298429 into main Jun 23, 2026
5 checks passed
petercinibulk added a commit that referenced this pull request Jun 24, 2026
* add memcache distributed cache support

* docs: update readme
petercinibulk added a commit that referenced this pull request Jun 24, 2026
* add memcache distributed cache support

* docs: update readme
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant