Global cache operations - shared across all integrations and users Use for system-wide statistics, feature flags, or shared configuration
Delete a value from global cache
The cache key to delete
Promise that resolves when the operation completes
await cache.global.delete('feature_flags'); Copy
await cache.global.delete('feature_flags');
Get a value from global cache
The cache key
Promise that resolves to the cached value or null if not found
const totalLookups = await cache.global.get('total_lookups') || 0; Copy
const totalLookups = await cache.global.get('total_lookups') || 0;
Set a value in global cache
The value to cache (must be JSON serializable)
Optional
Cache options including TTL
await cache.global.set('total_lookups', count + 1, { ttl: 86400 }); Copy
await cache.global.set('total_lookups', count + 1, { ttl: 86400 });
Global cache operations - shared across all integrations and users Use for system-wide statistics, feature flags, or shared configuration