mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-09-29 05:56:38 +08:00
d3ba767087
Introduce pkg/cache/ram on top of existing Redis/DB config reads. GetByKey now checks local RAM before Redis. Unified invalidation clears RAM and Redis hash fields on admin writes, with pub/sub for multi-node RAM eviction. Add tests and wire create/update/migrator write paths.
13 lines
386 B
Go
13 lines
386 B
Go
// Copyright 2026 Arctel.net
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
package db
|
|
|
|
const (
|
|
errRedisHashSetFailed = "failed to set redis hash: %w"
|
|
errRedisHashDeleteFailed = "failed to delete redis hash field: %w"
|
|
errUnmarshalDataFailed = "failed to unmarshal data: %w"
|
|
errMarshalDataFailed = "failed to marshal data: %w"
|
|
errRedisKeySetFailed = "failed to set redis key: %w"
|
|
)
|