Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CacheBackendChecker ¶
type CacheBackendChecker[T backend.IBackendConstrain] struct { Backend backend.IBackend[T] }
CacheBackendChecker is a helper struct to check the type of the backend
func (*CacheBackendChecker[T]) IsInMemory ¶ added in v0.0.5
func (c *CacheBackendChecker[T]) IsInMemory() bool
IsInMemory returns true if the backend is an InMemory
func (*CacheBackendChecker[T]) IsRedis ¶ added in v0.0.6
func (c *CacheBackendChecker[T]) IsRedis() bool
IsRedisBackend returns true if the backend is a RedisBackend
Click to show internal directories.
Click to hide internal directories.