Language: Java
Package: dev.cachly:sdk on Maven Central
Full cross-SDK release notes: ../CHANGELOG.md
mset(List<MSetItem> items)– bulk set with per-key TTL via Redis pipelinemget(List<String> keys)– bulk get in one round-trip; returnsList<Object>(null on miss)lock(String key, LockOptions options)– distributed lock (SET NX PX + Lua release)- Returns
LockHandle;nullwhen retries exhausted LockHandle.release()for early, token-fenced unlock- Auto-expires after TTL to prevent deadlocks
- Returns
streamSet(String key, Iterable<String> chunks, StreamSetOptions options)– cache token stream via RPUSHstreamGet(String key)– returnsStreamReader; iterate withnext()
Known limitationssection updated – bulk ops now implemented
Initial beta release.
set(key, value, ttl)– store a value with optional TTLget(key)– retrieve a value by keydelete(key)– remove a keyclear(namespace)– flush namespace or entire cache- Semantic cache:
semantic().set(...),semantic().get(...),semantic().clear() - Namespace support via
withNamespace(ns) - API-key-based authentication
- TLS by default, EU data residency (German servers)
Bulk operations (✅ resolved in v0.2.0mset/mget) not yet implemented- Pub/Sub not yet supported
See ../CHANGELOG.md for upcoming features.