RuntimeCache is runtime cache adapter. it contains a RW locker for safe map storage.
| 33 | // RuntimeCache is runtime cache adapter. |
| 34 | // it contains a RW locker for safe map storage. |
| 35 | type RuntimeCache struct { |
| 36 | sync.RWMutex //only used with Incr\Decr |
| 37 | gcInterval time.Duration |
| 38 | items *sync.Map |
| 39 | //itemsMap map[string]*RuntimeItem |
| 40 | } |
| 41 | |
| 42 | // NewRuntimeCache returns a new *RuntimeCache. |
| 43 | func NewRuntimeCache() *RuntimeCache { |
nothing calls this directly
no outgoing calls
no test coverage detected