cache

package
v0.0.0-...-7fad759 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

cache/cache.go

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CacheService

type CacheService interface {
	StoreStatus(status domain.Status)
	GetStatus(name string) (domain.Status, bool)
	StorePriority(priority domain.Priority)
	GetPriority(name string) (domain.Priority, bool)
	StoreAllPriorities(priorities []domain.Priority)
	StoreAllStatuses(statuses []domain.Status)
	InitializeCache()
	GetAllPriorities() ([]domain.Priority, error)
	GetAllStatuses() ([]domain.Status, error)
}

CacheService define a interface para o serviço de cache.

func NewCacheService

func NewCacheService(db *mongo.Database) CacheService

Jump to

Keyboard shortcuts

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