Interface SyncCacheCommands

  • All Superinterfaces:
    io.lettuce.core.dynamic.Commands

    @Deprecated
    public interface SyncCacheCommands
    extends io.lettuce.core.dynamic.Commands
    Deprecated.
    The synchronous operations required by RedisCache.
    Since:
    1.0
    • Method Summary

      All Methods Instance Methods Abstract Methods Deprecated Methods 
      Modifier and Type Method Description
      java.lang.Long del​(byte[]... keys)
      Deprecated.
      Delete one or more keys.
      void expire​(byte[] key, long timeout)
      Deprecated.
      See https://redis.io/commands/pexpire.
      byte[] get​(byte[] key)
      Deprecated.
      See https://redis.io/commands/get.
      java.util.List<byte[]> keys​(byte[] pattern)
      Deprecated.
      Find all keys matching the given pattern.
      void put​(byte[] key, byte[] value)
      Deprecated.
      See https://redis.io/commands/set.
      void put​(byte[] key, byte[] value, long timeout)
      Deprecated.
      See https://redis.io/commands/set.
      void remove​(byte[] key)
      Deprecated.
      See https://redis.io/commands/del.
    • Method Detail

      • get

        @Command("GET :key")
        byte[] get​(@Param("key")
                   byte[] key)
        Deprecated.
        See https://redis.io/commands/get.
        Parameters:
        key - The key to retrieve
        Returns:
        key as byte array
      • remove

        @Command("DEL :key")
        void remove​(@Param("key")
                    byte[] key)
        Deprecated.
        See https://redis.io/commands/del.
        Parameters:
        key - The key to delete
      • put

        @Command("SET :key :value")
        void put​(@Param("key")
                 byte[] key,
                 @Param("value")
                 byte[] value)
        Deprecated.
        See https://redis.io/commands/set.
        Parameters:
        key - The key
        value - The value
      • put

        @Command("SET :key :value PX :timeout")
        void put​(@Param("key")
                 byte[] key,
                 @Param("value")
                 byte[] value,
                 @Param("timeout")
                 long timeout)
        Deprecated.
        See https://redis.io/commands/set.
        Parameters:
        key - The key
        value - The value
        timeout - The timeout
      • expire

        @Command("PEXPIRE :key :timeout")
        void expire​(@Param("key")
                    byte[] key,
                    @Param("timeout")
                    long timeout)
        Deprecated.
        See https://redis.io/commands/pexpire.
        Parameters:
        key - The key to expire
        timeout - The timeout
      • del

        java.lang.Long del​(byte[]... keys)
        Deprecated.
        Delete one or more keys.
        Parameters:
        keys - the keys
        Returns:
        Long integer-reply The number of keys that were removed.
      • keys

        java.util.List<byte[]> keys​(byte[] pattern)
        Deprecated.
        Find all keys matching the given pattern.
        Parameters:
        pattern - the pattern type: patternkey (pattern)
        Returns:
        List<K> array-reply list of keys matching pattern.