LRU Cache 一个支持并发读取的 LRU (Least Recently Used) 缓存实现。 特性 支持并发安全的读写 实现 LRU 淘汰策略 支持设置最大容量 支持过期时间 使用示例 cache := New(100, 5*time.Minute) cache.Set("key", "value") value, exists := cache.Get("key") 运行测试 go test -v ./cache 运行示例 go run examples/main.go