(key string, user TwitterUser)
| 29 | } |
| 30 | |
| 31 | func (c *Cache) Set(key string, user TwitterUser) { |
| 32 | c.mutex.Lock() |
| 33 | defer c.mutex.Unlock() |
| 34 | c.data[key] = user |
| 35 | go c.expireKeyAfterTTL(key) |
| 36 | } |
| 37 | |
| 38 | // maybe not the most effiecent use of memory. |
| 39 | func (c *Cache) SetMultiple(keys []string, user TwitterUser) { |
no test coverage detected