cache := registry.NewCache()
item := registry.CacheItem{ IndexName: "example_index", Using: "upside_down", } cache.Set(item)
item, err := cache.Get("example_index") if err == nil { // use item } else { // handle error }Overall, this package provides a convenient way to manage and cache bleve search indexes.