frappe-core-cache

Installation
SKILL.md

Frappe Cache & Locking

Quick Reference

Action Method Notes
Set value frappe.cache.set_value(key, val) With optional TTL
Get value frappe.cache.get_value(key) Returns None if missing
Get or generate frappe.cache.get_value(key, generator=fn) Calls fn() on cache miss
Delete value frappe.cache.delete_value(key) Single key or list of keys
Delete by pattern frappe.cache.delete_keys(pattern) Wildcard * matching
Hash set frappe.cache.hset(name, key, val) Redis hash field
Hash get frappe.cache.hget(name, key) Single hash field
Hash get all frappe.cache.hgetall(name) Full hash as dict
Hash delete frappe.cache.hdel(name, key) Remove hash field
Hash exists frappe.cache.hexists(name, key) Returns bool
Cached document frappe.get_cached_doc(dt, dn) Full doc from cache
Clear doc cache frappe.clear_document_cache(dt, dn) Invalidate cached doc
Decorator cache @redis_cache Auto-cache function result
Related skills
Installs
31
GitHub Stars
95
First Seen
Mar 25, 2026