InMemoryStore 内存存储实现(用于测试和简单场景)
| 9 | |
| 10 | // InMemoryStore 内存存储实现(用于测试和简单场景) |
| 11 | type InMemoryStore struct { |
| 12 | mu sync.RWMutex |
| 13 | memories map[string]*LogicMemory // key: namespace:key |
| 14 | closed bool |
| 15 | } |
| 16 | |
| 17 | // NewInMemoryStore 创建内存存储 |
| 18 | func NewInMemoryStore() *InMemoryStore { |
nothing calls this directly
no outgoing calls
no test coverage detected