initial commit 2
This commit is contained in:
15
domain/constants.go
Normal file
15
domain/constants.go
Normal file
@@ -0,0 +1,15 @@
|
||||
package domain
|
||||
|
||||
type errorString string
|
||||
|
||||
func (err errorString) Error() string {
|
||||
return string(err)
|
||||
}
|
||||
|
||||
// ErrCacheMiss indicates a cache miss when fetching an item from CacheManager.
|
||||
const ErrCacheMiss = errorString("cache miss: key not found")
|
||||
|
||||
// Used to log errors with communication and operation of cache implementation
|
||||
const LogProblemGettingFromCache = "Getting from cache is not working correctly: %v"
|
||||
const LogProblemPuttingToCache = "Putting to cache is not working correctly: %v"
|
||||
const LogProblemExpiringCache = "Expiring cache key is not working correctly: %v"
|
||||
Reference in New Issue
Block a user