zoukankan      html  css  js  c++  java
  • StackService.Redis.IRedisClient.cs

    ylbtech-StackService.Redis.IRedisClient.cs
    1.返回顶部
    1、
    #region 程序集 ServiceStack.Interfaces, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
    // D:labsp
    eposSolution4ConsoleRedis6inDebugServiceStack.Interfaces.dll
    #endregion
    
    using System;
    using System.Collections.Generic;
    using System.Reflection;
    using ServiceStack.CacheAccess;
    using ServiceStack.DataAccess;
    using ServiceStack.DesignPatterns.Model;
    using ServiceStack.Redis.Generic;
    using ServiceStack.Redis.Pipeline;
    
    namespace ServiceStack.Redis
    {
        [DefaultMember("Item")]
        public interface IRedisClient : IBasicPersistenceProvider, ICacheClient, IDisposable
        {
            string this[string key] { get; set; }
    
            IHasNamed<IRedisHash> Hashes { get; set; }
            int Port { get; }
            int ConnectTimeout { get; set; }
            DateTime LastSave { get; }
            Dictionary<string, string> Info { get; }
            IHasNamed<IRedisSortedSet> SortedSets { get; set; }
            long DbSize { get; }
            string Host { get; }
            int RetryTimeout { get; set; }
            long Db { get; set; }
            int SendTimeout { get; set; }
            string Password { get; set; }
            bool HadExceptions { get; }
            IHasNamed<IRedisList> Lists { get; set; }
            IHasNamed<IRedisSet> Sets { get; set; }
            int RetryCount { get; set; }
    
            IDisposable AcquireLock(string key, TimeSpan timeOut);
            IDisposable AcquireLock(string key);
            void AddItemToList(string listId, string value);
            void AddItemToSet(string setId, string item);
            bool AddItemToSortedSet(string setId, string value, double score);
            bool AddItemToSortedSet(string setId, string value);
            void AddRangeToList(string listId, List<string> values);
            void AddRangeToSet(string setId, List<string> items);
            bool AddRangeToSortedSet(string setId, List<string> values, long score);
            bool AddRangeToSortedSet(string setId, List<string> values, double score);
            long AppendToValue(string key, string value);
            IRedisTypedClient<T> As<T>();
            string BlockingDequeueItemFromList(string listId, TimeSpan? timeOut);
            ItemRef BlockingDequeueItemFromLists(string[] listIds, TimeSpan? timeOut);
            string BlockingPopAndPushItemBetweenLists(string fromListId, string toListId, TimeSpan? timeOut);
            string BlockingPopItemFromList(string listId, TimeSpan? timeOut);
            ItemRef BlockingPopItemFromLists(string[] listIds, TimeSpan? timeOut);
            string BlockingRemoveStartFromList(string listId, TimeSpan? timeOut);
            ItemRef BlockingRemoveStartFromLists(string[] listIds, TimeSpan? timeOut);
            string CalculateSha1(string luaBody);
            bool ContainsKey(string key);
            IRedisPipeline CreatePipeline();
            IRedisSubscription CreateSubscription();
            IRedisTransaction CreateTransaction();
            long DecrementValue(string key);
            long DecrementValueBy(string key, int count);
            string DequeueItemFromList(string listId);
            void EnqueueItemOnList(string listId, string value);
            long ExecLuaAsInt(string luaBody, string[] keys, string[] args);
            long ExecLuaAsInt(string luaBody, params string[] args);
            List<string> ExecLuaAsList(string luaBody, string[] keys, string[] args);
            List<string> ExecLuaAsList(string luaBody, params string[] args);
            string ExecLuaAsString(string luaBody, string[] keys, string[] args);
            string ExecLuaAsString(string luaBody, params string[] args);
            long ExecLuaShaAsInt(string sha1, string[] keys, string[] args);
            long ExecLuaShaAsInt(string sha1, params string[] args);
            List<string> ExecLuaShaAsList(string sha1, params string[] args);
            List<string> ExecLuaShaAsList(string sha1, string[] keys, string[] args);
            string ExecLuaShaAsString(string sha1, params string[] args);
            string ExecLuaShaAsString(string sha1, string[] keys, string[] args);
            bool ExpireEntryAt(string key, DateTime expireAt);
            bool ExpireEntryIn(string key, TimeSpan expireIn);
            void FlushDb();
            Dictionary<string, string> GetAllEntriesFromHash(string hashId);
            List<string> GetAllItemsFromList(string listId);
            HashSet<string> GetAllItemsFromSet(string setId);
            List<string> GetAllItemsFromSortedSet(string setId);
            List<string> GetAllItemsFromSortedSetDesc(string setId);
            List<string> GetAllKeys();
            IDictionary<string, double> GetAllWithScoresFromSortedSet(string setId);
            string GetAndSetEntry(string key, string value);
            HashSet<string> GetDifferencesFromSet(string fromSetId, params string[] withSetIds);
            RedisKeyType GetEntryType(string key);
            T GetFromHash<T>(object id);
            long GetHashCount(string hashId);
            List<string> GetHashKeys(string hashId);
            List<string> GetHashValues(string hashId);
            HashSet<string> GetIntersectFromSets(params string[] setIds);
            string GetItemFromList(string listId, int listIndex);
            long GetItemIndexInSortedSet(string setId, string value);
            long GetItemIndexInSortedSetDesc(string setId, string value);
            double GetItemScoreInSortedSet(string setId, string value);
            long GetListCount(string listId);
            string GetRandomItemFromSet(string setId);
            string GetRandomKey();
            List<string> GetRangeFromList(string listId, int startingFrom, int endingAt);
            List<string> GetRangeFromSortedList(string listId, int startingFrom, int endingAt);
            List<string> GetRangeFromSortedSet(string setId, int fromRank, int toRank);
            List<string> GetRangeFromSortedSetByHighestScore(string setId, long fromScore, long toScore, int? skip, int? take);
            List<string> GetRangeFromSortedSetByHighestScore(string setId, double fromScore, double toScore, int? skip, int? take);
            List<string> GetRangeFromSortedSetByHighestScore(string setId, long fromScore, long toScore);
            List<string> GetRangeFromSortedSetByHighestScore(string setId, double fromScore, double toScore);
            List<string> GetRangeFromSortedSetByHighestScore(string setId, string fromStringScore, string toStringScore, int? skip, int? take);
            List<string> GetRangeFromSortedSetByHighestScore(string setId, string fromStringScore, string toStringScore);
            List<string> GetRangeFromSortedSetByLowestScore(string setId, long fromScore, long toScore, int? skip, int? take);
            List<string> GetRangeFromSortedSetByLowestScore(string setId, double fromScore, double toScore, int? skip, int? take);
            List<string> GetRangeFromSortedSetByLowestScore(string setId, long fromScore, long toScore);
            List<string> GetRangeFromSortedSetByLowestScore(string setId, double fromScore, double toScore);
            List<string> GetRangeFromSortedSetByLowestScore(string setId, string fromStringScore, string toStringScore, int? skip, int? take);
            List<string> GetRangeFromSortedSetByLowestScore(string setId, string fromStringScore, string toStringScore);
            List<string> GetRangeFromSortedSetDesc(string setId, int fromRank, int toRank);
            IDictionary<string, double> GetRangeWithScoresFromSortedSet(string setId, int fromRank, int toRank);
            IDictionary<string, double> GetRangeWithScoresFromSortedSetByHighestScore(string setId, long fromScore, long toScore, int? skip, int? take);
            IDictionary<string, double> GetRangeWithScoresFromSortedSetByHighestScore(string setId, double fromScore, double toScore, int? skip, int? take);
            IDictionary<string, double> GetRangeWithScoresFromSortedSetByHighestScore(string setId, long fromScore, long toScore);
            IDictionary<string, double> GetRangeWithScoresFromSortedSetByHighestScore(string setId, double fromScore, double toScore);
            IDictionary<string, double> GetRangeWithScoresFromSortedSetByHighestScore(string setId, string fromStringScore, string toStringScore, int? skip, int? take);
            IDictionary<string, double> GetRangeWithScoresFromSortedSetByHighestScore(string setId, string fromStringScore, string toStringScore);
            IDictionary<string, double> GetRangeWithScoresFromSortedSetByLowestScore(string setId, long fromScore, long toScore);
            IDictionary<string, double> GetRangeWithScoresFromSortedSetByLowestScore(string setId, long fromScore, long toScore, int? skip, int? take);
            IDictionary<string, double> GetRangeWithScoresFromSortedSetByLowestScore(string setId, double fromScore, double toScore, int? skip, int? take);
            IDictionary<string, double> GetRangeWithScoresFromSortedSetByLowestScore(string setId, string fromStringScore, string toStringScore, int? skip, int? take);
            IDictionary<string, double> GetRangeWithScoresFromSortedSetByLowestScore(string setId, string fromStringScore, string toStringScore);
            IDictionary<string, double> GetRangeWithScoresFromSortedSetByLowestScore(string setId, double fromScore, double toScore);
            IDictionary<string, double> GetRangeWithScoresFromSortedSetDesc(string setId, int fromRank, int toRank);
            long GetSetCount(string setId);
            List<string> GetSortedEntryValues(string key, int startingFrom, int endingAt);
            List<string> GetSortedItemsFromList(string listId, SortOptions sortOptions);
            long GetSortedSetCount(string setId, long fromScore, long toScore);
            long GetSortedSetCount(string setId, string fromStringScore, string toStringScore);
            long GetSortedSetCount(string setId);
            long GetSortedSetCount(string setId, double fromScore, double toScore);
            string GetSubstring(string key, int fromIndex, int toIndex);
            TimeSpan GetTimeToLive(string key);
            IRedisTypedClient<T> GetTypedClient<T>();
            HashSet<string> GetUnionFromSets(params string[] setIds);
            string GetValue(string key);
            string GetValueFromHash(string hashId, string key);
            List<string> GetValues(List<string> keys);
            List<T> GetValues<T>(List<string> keys);
            List<string> GetValuesFromHash(string hashId, params string[] keys);
            Dictionary<string, T> GetValuesMap<T>(List<string> keys);
            Dictionary<string, string> GetValuesMap(List<string> keys);
            bool HashContainsEntry(string hashId, string key);
            bool HasLuaScript(string sha1Ref);
            double IncrementItemInSortedSet(string setId, string value, long incrementBy);
            double IncrementItemInSortedSet(string setId, string value, double incrementBy);
            long IncrementValue(string key);
            long IncrementValueBy(string key, int count);
            long IncrementValueInHash(string hashId, string key, int incrementBy);
            void KillRunningLuaScript();
            string LoadLuaScript(string body);
            void MoveBetweenSets(string fromSetId, string toSetId, string item);
            string PopAndPushItemBetweenLists(string fromListId, string toListId);
            string PopItemFromList(string listId);
            string PopItemFromSet(string setId);
            string PopItemWithHighestScoreFromSortedSet(string setId);
            string PopItemWithLowestScoreFromSortedSet(string setId);
            void PrependItemToList(string listId, string value);
            void PrependRangeToList(string listId, List<string> values);
            long PublishMessage(string toChannel, string message);
            void PushItemToList(string listId, string value);
            void RemoveAllFromList(string listId);
            void RemoveAllLuaScripts();
            string RemoveEndFromList(string listId);
            bool RemoveEntry(params string[] args);
            bool RemoveEntryFromHash(string hashId, string key);
            long RemoveItemFromList(string listId, string value, int noOfMatches);
            long RemoveItemFromList(string listId, string value);
            void RemoveItemFromSet(string setId, string item);
            bool RemoveItemFromSortedSet(string setId, string value);
            long RemoveRangeFromSortedSet(string setId, int minRank, int maxRank);
            long RemoveRangeFromSortedSetByScore(string setId, long fromScore, long toScore);
            long RemoveRangeFromSortedSetByScore(string setId, double fromScore, double toScore);
            string RemoveStartFromList(string listId);
            void RenameKey(string fromName, string toName);
            void RewriteAppendOnlyFileAsync();
            void Save();
            void SaveAsync();
            List<string> SearchKeys(string pattern);
            void SetAll(IEnumerable<string> keys, IEnumerable<string> values);
            void SetAll(Dictionary<string, string> map);
            bool SetContainsItem(string setId, string item);
            void SetEntry(string key, string value);
            void SetEntry(string key, string value, TimeSpan expireIn);
            bool SetEntryIfNotExists(string key, string value);
            bool SetEntryInHash(string hashId, string key, string value);
            bool SetEntryInHashIfNotExists(string hashId, string key, string value);
            void SetItemInList(string listId, int listIndex, string value);
            void SetRangeInHash(string hashId, IEnumerable<KeyValuePair<string, string>> keyValuePairs);
            void Shutdown();
            bool SortedSetContainsItem(string setId, string value);
            void StoreAsHash<T>(T entity);
            void StoreDifferencesFromSet(string intoSetId, string fromSetId, params string[] withSetIds);
            void StoreIntersectFromSets(string intoSetId, params string[] setIds);
            long StoreIntersectFromSortedSets(string intoSetId, params string[] setIds);
            object StoreObject(object entity);
            void StoreUnionFromSets(string intoSetId, params string[] setIds);
            long StoreUnionFromSortedSets(string intoSetId, params string[] setIds);
            void TrimList(string listId, int keepStartingFrom, int keepEndingAt);
            void UnWatch();
            void Watch(params string[] keys);
            Dictionary<string, bool> WhichLuaScriptsExists(params string[] sha1Refs);
            void WriteAll<TEntity>(IEnumerable<TEntity> entities);
        }
    }
    2、
    2.返回顶部
     
    3.返回顶部
     
    4.返回顶部
     
    5.返回顶部
     
     
    6.返回顶部
     
    warn 作者:ylbtech
    出处:http://ylbtech.cnblogs.com/
    本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。
  • 相关阅读:
    【转载】不出国如何练就一口流利的英语?
    【转载】什么能力很重要——4
    【转载】什么能力很重要,但大多数人却没有?——3
    【转载】什么能力很重要,但大多数人却没有?——2
    【转载】什么能力很重要,但大多数人却没有?——1
    【转载】有哪些东西是你读研究生以后才懂的?
    JDBCTemplate基本使用
    Druid数据库连接池基本使用
    C3P0连接池
    简单理解数据库连接池(JDBC)
  • 原文地址:https://www.cnblogs.com/storebook/p/12673204.html
Copyright © 2011-2022 走看看