distributed-caching-and-locking

Installation
SKILL.md

Distributed Caching & Locking (ABP)

Guidance for ABP's typed distributed cache and distributed lock, plus a short pointer on data filters, settings, and features. All APIs below are verified against ABP source. Inject everything via constructor.

When to Use

  • Cache typed values across app instances with IDistributedCache<TCacheItem> (Redis-backed).
  • Use GetOrAddAsync to return a cached value or compute-and-store it on a miss.
  • Coordinate a critical section so only one app instance runs it at a time (IAbpDistributedLock).

When Not to Use

  • Publishing/handling events, deferred jobs, or recurring workers — use the background-jobs-and-events skill.
  • Defining and checking settings or features in full — use the manage-settings-and-features skill. The settings/features notes below are only a pointer.
  • Data-filter details beyond the brief mention — use the apply-data-filters skill.

How it works

Typed distributed cache

Installs
20
GitHub Stars
32
First Seen
Sep 5, 2026