Docs / utilities / getCached

getCached

utility

Read a value from the generic per-resource client-side cache.

import { getCached, setCached, deleteCached, CACHE_TTL } from 'flowstack-sdk'

Generic read from the SDK's client-side cache. Part of the generic cache trio (getCached / setCached / deleteCached) that backs per-resource caching with TTL.

Examples

Cache utility imports
import {
  // Generic
  getCached, setCached, deleteCached,
  CACHE_TTL,
  // Resource-specific
  getCachedWorkspaces, setCachedWorkspaces, invalidateWorkspacesCache,
  getCachedDatasets, setCachedDatasets, invalidateDatasetsCache,
  getCachedVisualizations, setCachedVisualizations, invalidateVisualizationsCache,
  getCachedReports, setCachedReports, invalidateReportsCache,
  getCachedSites, setCachedSites, invalidateSitesCache,
  // Bulk invalidation
  invalidateWorkspaceArtifacts,
  invalidateAllUserCache,
} from 'flowstack-sdk';

See also

setCached · deleteCached · CACHE_TTL

Source: README.md#cache-utilities · Also available in llms-full.txt and registry.json.