utils

package
v0.0.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 16, 2023 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TypeName

func TypeName(object interface{}) (typeName string, inferredType string)

TypeName returns the type and inferred type name of the object passed in.

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL