StoredSettingsValue
@propertyWrapper
class StoredSettingsValue<T>: SettingsValue<T>, StoredSetting
where T: Encodable & RESPValueConvertibleWraps settings properties, making them thread-safe. Contains methods for loading/storing values from a Redis hash. Use this for settings that should be database-backed.
- 
                  
                  DeclarationSwift var projectedValue: StoredSettingsValue<T> { get }
- 
                  
                  DeclarationSwift var redisField: String
- 
                  
                  DeclarationSwift override var wrappedValue: T { get set }
- 
                  
                  DeclarationSwift init(_ field: String, defaultValue: T)
- 
                  readFromRedis(redis:Asynchronous) DeclarationSwift func readFromRedis(redis: RedisClient) async throws
- 
                  writeToRedis(redis:Asynchronous) DeclarationSwift func writeToRedis(redis: RedisClient) async throws -> Bool
 View on GitHub
            View on GitHub
           StoredSettingsValue Class Reference
      StoredSettingsValue Class Reference