storage/sqlite/direct.go | 7 +++++++ diff --git a/storage/sqlite/direct.go b/storage/sqlite/direct.go index fe5b27016a62267182b8327187eadff17d2177e7..b36867fac3ce3457a0c9be2ad46b2c80ab5849d2 100644 --- a/storage/sqlite/direct.go +++ b/storage/sqlite/direct.go @@ -26,6 +26,13 @@ cache.GetCapacity, }, nil } +func NewWrappingClient(cache *squirrel.Cache) storage.ClientImpl { + return &client{ + cache, + cache.GetCapacity, + } +} + type client struct { *squirrel.Cache capacity func() *int64