You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: restructure cache types into pkg/cache package
Move cache-related types and utilities from scattered locations into a
centralized pkg/cache package structure following Go package conventions.
Package changes:
- Move types/item.go to pkg/cache/item.go
- Move cache/cmap.go to pkg/cache/cmap.go
- Move cache/v4/cmap.go to pkg/cache/v4/cmap.go
Type updates:
- types.Item → cache.Item
- types.ItemPoolManager → cache.ItemPoolManager
- Update all imports and references throughout codebase
This reorganization improves package clarity by grouping all cache-related
types under a single, well-defined package hierarchy. The pkg/ directory
follows Go conventions for reusable packages, while maintaining all
existing functionality and APIs.
Affected components: backends, eviction algorithms, middleware, examples,
and tests - all updated to use the new package structure.
0 commit comments