java.lang.Object
java.lang.Enum<CacheEngine>
software.amazon.awscdk.services.elasticache.alpha.CacheEngine
All Implemented Interfaces:
Serializable, Comparable<CacheEngine>, java.lang.constant.Constable

@Generated(value="jsii-pacmak/1.113.0 (build fc68b25)", date="2025-10-14T12:28:23.373Z") @Stability(Experimental) public enum CacheEngine extends Enum<CacheEngine>
(experimental) Supported cache engines together with available versions.

Example:

 Vpc vpc;
 ServerlessCache serverlessCache = ServerlessCache.Builder.create(this, "ServerlessCache")
         .engine(CacheEngine.VALKEY_LATEST)
         .backup(BackupSettings.builder()
                 // set a backup name before deleting a cache
                 .backupNameBeforeDeletion("my-final-backup-name")
                 .build())
         .vpc(vpc)
         .build();
 
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    (experimental) Memcached engine, latest major version available, minor version is selected automatically For more information about the features related to this version check: https://docs.aws.amazon.com/AmazonElastiCache/latest/dg/engine-versions.html.
    (experimental) Redis engine, major version 7, minor version is selected automatically For more information about the features related to this version check: https://docs.aws.amazon.com/AmazonElastiCache/latest/dg/engine-versions.html.
    (experimental) Redis engine, latest major version available, minor version is selected automatically For more information about the features related to this version check: https://docs.aws.amazon.com/AmazonElastiCache/latest/dg/engine-versions.html.
    (experimental) Valkey engine, major version 7, minor version is selected automatically For more information about the features related to this version check: https://docs.aws.amazon.com/AmazonElastiCache/latest/dg/engine-versions.html.
    (experimental) Valkey engine, major version 8, minor version is selected automatically For more information about the features related to this version check: https://docs.aws.amazon.com/AmazonElastiCache/latest/dg/engine-versions.html.
    (experimental) Valkey engine, latest major version available, minor version is selected automatically For more information about the features related to this version check: https://docs.aws.amazon.com/AmazonElastiCache/latest/dg/engine-versions.html.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the enum constant of this type with the specified name.
    static CacheEngine[]
    Returns an array containing the constants of this enum type, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • VALKEY_LATEST

      @Stability(Experimental) public static final CacheEngine VALKEY_LATEST
      (experimental) Valkey engine, latest major version available, minor version is selected automatically For more information about the features related to this version check: https://docs.aws.amazon.com/AmazonElastiCache/latest/dg/engine-versions.html.
    • VALKEY_7

      @Stability(Experimental) public static final CacheEngine VALKEY_7
      (experimental) Valkey engine, major version 7, minor version is selected automatically For more information about the features related to this version check: https://docs.aws.amazon.com/AmazonElastiCache/latest/dg/engine-versions.html.
    • VALKEY_8

      @Stability(Experimental) public static final CacheEngine VALKEY_8
      (experimental) Valkey engine, major version 8, minor version is selected automatically For more information about the features related to this version check: https://docs.aws.amazon.com/AmazonElastiCache/latest/dg/engine-versions.html.
    • REDIS_LATEST

      @Stability(Experimental) public static final CacheEngine REDIS_LATEST
      (experimental) Redis engine, latest major version available, minor version is selected automatically For more information about the features related to this version check: https://docs.aws.amazon.com/AmazonElastiCache/latest/dg/engine-versions.html.
    • REDIS_7

      @Stability(Experimental) public static final CacheEngine REDIS_7
      (experimental) Redis engine, major version 7, minor version is selected automatically For more information about the features related to this version check: https://docs.aws.amazon.com/AmazonElastiCache/latest/dg/engine-versions.html.
    • MEMCACHED_LATEST

      @Stability(Experimental) public static final CacheEngine MEMCACHED_LATEST
      (experimental) Memcached engine, latest major version available, minor version is selected automatically For more information about the features related to this version check: https://docs.aws.amazon.com/AmazonElastiCache/latest/dg/engine-versions.html.
  • Method Details

    • values

      public static CacheEngine[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static CacheEngine valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null