List returns a list of all the items. List is completely threadsafe as long as you treat all items as immutable.
()
| 152 | // List returns a list of all the items. |
| 153 | // List is completely threadsafe as long as you treat all items as immutable. |
| 154 | func (c *cache) List() []interface{} { |
| 155 | return c.cacheStorage.List() |
| 156 | } |
| 157 | |
| 158 | // ListKeys returns a list of all the keys of the objects currently |
| 159 | // in the cache. |