componentized

interface componentized:valkey/as-keyvalue-constants@0.3.0-dev

since 0.3.0-dev pre-release

The keys of the as-keyvalue's componentized:secrets, and their defaults. The values are provided by the as-keyvalue-constants component.

Functions

functionkey-prefix-key: func() -> stringsince 0.3.0-dev

The key of the prefix of the hash for each bucket, e.g. app: stores the bucket users in the hash app:users.

@value "key-prefix"

functionkey-prefix-default: func() -> stringsince 0.3.0-dev

The prefix of the hash for each bucket without one, the hash is named for the bucket.

@value ""

WIT

/// The keys of the `as-keyvalue`'s componentized:secrets, and their defaults. The values are
/// provided by the `as-keyvalue-constants` component.
@since(version = 0.3.0-dev)
interface as-keyvalue-constants {
  /// The key of the prefix of the hash for each bucket, e.g. `app:` stores the bucket `users` in
  /// the hash `app:users`.
  ///
  /// @value "key-prefix"
  @since(version = 0.3.0-dev)
  key-prefix-key: func() -> string;

  /// The prefix of the hash for each bucket without one, the hash is named for the bucket.
  ///
  /// @value ""
  @since(version = 0.3.0-dev)
  key-prefix-default: func() -> string;
}