github.com/nowayhecodes/polacache (go): Polacache is deadly a simple and thread-safe map cache.  In it's constructor, you set a cleanupInterval, which launchs a goroutine to perform the cleanup loop.  Example:
Keywords: cache-storage|caching|channels|concurrent|go|go-channel|golang|goroutine|thread-safe