Crate skp_cache_core

Crate skp_cache_core 

Source
Expand description

skp-cache-core: Core traits and types for the skp-cache library

This crate provides the foundational types and traits used throughout the skp-cache ecosystem.

Structs§

CacheEntry
A cached entry with full metadata
CacheOptions
Configuration options for a cache entry
CacheOpts
Builder for CacheOptions with fluent API
CacheStats
Statistics for cache operations
CompositeKey
Composite key builder for complex keys
JsonSerializer
JSON serializer (default)
NoopCompressor
No-op compressor (disabled compression)
NoopMetrics
No-op metrics implementation (default)

Enums§

CacheError
Main error type for all cache operations
CacheOperation
Cache operation for latency tracking
CacheResult
Result of a cache lookup operation
CacheTier
Cache tier for metrics labeling
EvictionReason
Reason for cache eviction

Traits§

CacheBackend
Core trait for all cache storage backends
CacheKey
Trait for types that can be used as cache keys
CacheMetrics
Trait for cache metrics/observability
Compressor
Trait for compression implementations
DependencyBackend
Extended trait for backends that support dependency tracking
DistributedBackend
Extended trait for distributed backends
Serializer
Trait for pluggable serialization formats
TaggableBackend
Extended trait for backends that support tag-based operations

Type Aliases§

Result
Result type alias for cache operations