utils

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2025 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 any) (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]
	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.

Jump to

Keyboard shortcuts

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