Class UserStorageWrapper

  • All Implemented Interfaces:
    pluggable.CustomStorageWrapper

    public class UserStorageWrapper
    extends Object
    implements pluggable.CustomStorageWrapper
    • Constructor Detail

      • UserStorageWrapper

        public UserStorageWrapper​(pluggable.CustomStorageWrapper customStorageWrapper)
    • Method Detail

      • get

        public String get​(String key)
        Specified by:
        get in interface pluggable.CustomStorageWrapper
      • getMany

        public List<String> getMany​(List<String> keys)
        Specified by:
        getMany in interface pluggable.CustomStorageWrapper
      • set

        public void set​(String key,
                        String item)
        Specified by:
        set in interface pluggable.CustomStorageWrapper
      • hSet

        public void hSet​(String key,
                         String field,
                         String item)
        Specified by:
        hSet in interface pluggable.CustomStorageWrapper
      • delete

        public void delete​(List<String> keys)
        Specified by:
        delete in interface pluggable.CustomStorageWrapper
      • getAndSet

        public String getAndSet​(String key,
                                String item)
        Specified by:
        getAndSet in interface pluggable.CustomStorageWrapper
      • getKeysByPrefix

        public Set<String> getKeysByPrefix​(String prefix)
        Specified by:
        getKeysByPrefix in interface pluggable.CustomStorageWrapper
      • increment

        public long increment​(String key,
                              long value)
        Specified by:
        increment in interface pluggable.CustomStorageWrapper
      • hIncrement

        public long hIncrement​(String key,
                               String field,
                               long value)
        Specified by:
        hIncrement in interface pluggable.CustomStorageWrapper
      • decrement

        public long decrement​(String key,
                              long value)
        Specified by:
        decrement in interface pluggable.CustomStorageWrapper
      • pushItems

        public long pushItems​(String key,
                              List<String> items)
        Specified by:
        pushItems in interface pluggable.CustomStorageWrapper
      • popItems

        public List<String> popItems​(String key,
                                     long count)
        Specified by:
        popItems in interface pluggable.CustomStorageWrapper
      • getItemsCount

        public long getItemsCount​(String key)
        Specified by:
        getItemsCount in interface pluggable.CustomStorageWrapper
      • itemContains

        public boolean itemContains​(String key,
                                    String item)
        Specified by:
        itemContains in interface pluggable.CustomStorageWrapper
      • addItems

        public void addItems​(String key,
                             List<String> items)
        Specified by:
        addItems in interface pluggable.CustomStorageWrapper
      • removeItems

        public void removeItems​(String key,
                                List<String> items)
        Specified by:
        removeItems in interface pluggable.CustomStorageWrapper
      • getItems

        public List<String> getItems​(List<String> keys)
        Specified by:
        getItems in interface pluggable.CustomStorageWrapper
      • getMembers

        public Set<String> getMembers​(String key)
        Specified by:
        getMembers in interface pluggable.CustomStorageWrapper
      • connect

        public boolean connect()
        Specified by:
        connect in interface pluggable.CustomStorageWrapper
      • disconnect

        public boolean disconnect()
        Specified by:
        disconnect in interface pluggable.CustomStorageWrapper