MCPcopy Create free account
hub / github.com/GraphLite-AI/GraphLite / default_ttl

Method default_ttl

graphlite/src/cache/invalidation.rs:449–454  ·  view source on GitHub ↗

ROADMAP v0.5.0 - Default TTL strategy factory (30min default, 2hr max)

()

Source from the content-addressed store, hash-verified

447 /// Create TTL-based strategy with default settings
448 #[allow(dead_code)] // ROADMAP v0.5.0 - Default TTL strategy factory (30min default, 2hr max)
449 pub fn default_ttl() -> Self {
450 Self::Ttl {
451 default_ttl: Duration::from_secs(1800), // 30 minutes
452 max_ttl: Duration::from_secs(7200), // 2 hours
453 }
454 }
455
456 /// Create tag-based strategy for graph databases
457 #[allow(dead_code)] // ROADMAP v0.5.0 - Graph-specific tag-based invalidation strategy

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected