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] BackendType string }
CacheBackendChecker is a helper struct to check the type of the backend
func (*CacheBackendChecker[T]) GetRegisteredType ¶ added in v0.1.3
func (c *CacheBackendChecker[T]) GetRegisteredType() string
GetRegisteredType returns the backend type as a string.
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 Redis
Click to show internal directories.
Click to hide internal directories.