mirror of
https://github.com/lukaszraczylo/traefikoidc.git
synced 2026-06-05 22:44:17 +00:00
e64fc7f730
* Add redis support for distributed caching * Move towards the self-provided Redis connection pool and RESP protocol implementation. Official redis client library won't work with yaegi. * fixup! Move towards the self-provided Redis connection pool and RESP protocol implementation. Official redis client library won't work with yaegi. * fixup! fixup! Move towards the self-provided Redis connection pool and RESP protocol implementation. Official redis client library won't work with yaegi. * fixup! fixup! fixup! Move towards the self-provided Redis connection pool and RESP protocol implementation. Official redis client library won't work with yaegi. * fixup! fixup! fixup! fixup! Move towards the self-provided Redis connection pool and RESP protocol implementation. Official redis client library won't work with yaegi. * fixup! fixup! fixup! fixup! fixup! Move towards the self-provided Redis connection pool and RESP protocol implementation. Official redis client library won't work with yaegi. * ... and another all nighter. * fixup! ... and another all nighter. * fixup! fixup! ... and another all nighter. * fixup! fixup! fixup! ... and another all nighter. * Resolve issue #85 by adding ability to set custom claims in JWT tokens * Remove redundant validation in auth middleware ( issue #89 ) * Add ability to set cookie prefix for session cookies ( #87 ) * fixup! Add ability to set cookie prefix for session cookies ( #87 ) * Add ability to set cookie max age - issue #91 * Potential fix for code scanning alert no. 10: Size computation for allocation may overflow Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> * fixup! Merge main into 0.8.0-redis: resolve conflicts --------- Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
39 lines
1.3 KiB
Go
39 lines
1.3 KiB
Go
package backends
|
|
|
|
import "errors"
|
|
|
|
var (
|
|
// ErrBackendClosed is returned when operating on a closed backend
|
|
ErrBackendClosed = errors.New("cache backend is closed")
|
|
|
|
// ErrKeyNotFound is returned when a key doesn't exist
|
|
ErrKeyNotFound = errors.New("key not found")
|
|
|
|
// ErrCacheMiss indicates the requested key was not found in the cache
|
|
ErrCacheMiss = errors.New("cache miss")
|
|
|
|
// ErrBackendUnavailable indicates the cache backend is not available
|
|
ErrBackendUnavailable = errors.New("cache backend unavailable")
|
|
|
|
// ErrInvalidValue indicates the cached value is invalid or corrupted
|
|
ErrInvalidValue = errors.New("invalid cached value")
|
|
|
|
// ErrInvalidTTL is returned when TTL is invalid
|
|
ErrInvalidTTL = errors.New("invalid TTL")
|
|
|
|
// ErrConnectionFailed is returned when connection fails
|
|
ErrConnectionFailed = errors.New("connection failed")
|
|
|
|
// ErrCircuitOpen is returned when circuit breaker is open
|
|
ErrCircuitOpen = errors.New("circuit breaker is open")
|
|
|
|
// ErrTimeout is returned when operation times out
|
|
ErrTimeout = errors.New("operation timeout")
|
|
|
|
// ErrSerializationFailed is returned when serialization fails
|
|
ErrSerializationFailed = errors.New("serialization failed")
|
|
|
|
// ErrDeserializationFailed is returned when deserialization fails
|
|
ErrDeserializationFailed = errors.New("deserialization failed")
|
|
)
|