Skip to Content
SDKAPI Reference

API Reference

PlumaSnapshotCache

MemberSignatureDescription
PlumaSnapshotCache.create(options: PlumaSnapshotCacheOptions) => PlumaSnapshotCacheCreates a new cache instance.
cache.evaluator(options?: EvaluatorOptions) => Promise<Evaluator>Returns an evaluator for the current snapshot. Refreshes if the TTL has expired.

PlumaSnapshotCacheOptions

FieldTypeRequiredDefaultDescription
baseUrlstringyes(none)Base URL of the Pluma API server
tokenstringyes(none)SDK token from Organisation → API Keys
ttlMsnumberno30000Snapshot cache TTL in milliseconds

EvaluatorOptions

FieldTypeRequiredDescription
subjectKeystringnoUser ID or numeric-based identifier matched against allow/deny lists

Evaluator

MemberSignatureDescription
isEnabled(flagKey: string) => booleanEvaluates the flag for the configured subject.
Last updated on