MCPcopy
hub / github.com/mastra-ai/mastra / PruneCapable

Interface PruneCapable

packages/core/src/storage/base.ts:273–275  ·  view source on GitHub ↗

A domain that implements the age-based retention `prune()` contract.

Source from the content-addressed store, hash-verified

271
272/** A domain that implements the age-based retention `prune()` contract. */
273interface PruneCapable {
274 prune(policies: Record<string, TableRetentionPolicy>, options?: PruneOptions): Promise<PruneResult[]>;
275}
276
277function isPruneCapable(value: unknown): value is PruneCapable {
278 return typeof value === 'object' && value !== null && typeof (value as PruneCapable).prune === 'function';

Callers 6

pruneMethod · 0.65
retention.test.tsFile · 0.65
retention.test.tsFile · 0.65
retention.test.tsFile · 0.65
retention.test.tsFile · 0.65
retention.test.tsFile · 0.65

Implementers 15

MastraCompositeStorepackages/core/src/storage/base.ts
NotificationsMongoDBstores/mongodb/src/storage/domains/not
ScoresStorageMongoDBstores/mongodb/src/storage/domains/sco
ObservabilityMongoDBstores/mongodb/src/storage/domains/obs
WorkflowsStorageMongoDBstores/mongodb/src/storage/domains/wor
MemoryStorageMongoDBstores/mongodb/src/storage/domains/mem
MongoDBExperimentsStoragestores/mongodb/src/storage/domains/exp
SchedulesMongoDBstores/mongodb/src/storage/domains/sch
BackgroundTasksStorageMongoDBstores/mongodb/src/storage/domains/bac
NotificationsLibSQLstores/libsql/src/storage/domains/noti
ScoresLibSQLstores/libsql/src/storage/domains/scor
ThreadStateLibSQLstores/libsql/src/storage/domains/thre

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…