// NewMemoryCache uses map to store key:value data in-memory.
NewMemoryCache uses map to store key:value data in-memory.
// NewMemoryCache uses map to store key : value data in - memory .
func NewMemoryCache() *MemoryCache {
	c := &MemoryCache{cache: make(map[interface{}]*item)}
	go c.setTtlTimer()
	return c
}
func NewMemoryCache ( ) * MemoryCache { c := & MemoryCache { cache : make ( map [ interface { } ] * item ) } go c . setTtlTimer ( ) return c }
NewMemoryCache uses map to store key:value data in-memory.
NewMemoryCache uses map to store key : value data in - memory .