j      !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~      !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghi Safe-Inferredjklmnojjklmno Safe-Inferred24:Utility class for conversion to and from Strict ByteString      Safe-Inferred message recieved by pattern message recievedpattern unsubscribedpattern subscribed unsubscribed subscribedRedis reply variants8Complex reply. It may consists of various type of replysMultiline reply Integer replySimple oneline replySome kind of server-side errorUsed inside multi-exec blockReply for the ping command "Ok" replyAError converting value from ByteString. It's a client-side error.Timeout. Currently unusedpRedis command variantsRedis connection descriptorqhostname and port pairrcurrently selected databasesreal network connectiontcurrently in PUB/SUB modeumap of the renamed commands= pvwxy z{qrstu|}~< pvwxy z{qrstu|}~   pyxwv z{qrstu|}~None23468!Options data type for the  command#sort with descending order$return (from, to) elements%sort alphabetically&sort by value from this key'return this keys values(store result to this key-Class for conversion value to /Definied instances is:the Interval itselfpair (a,b) for open intervalatwo-member list [a, b] for closed interval (throws runtime error if the list length is different)/Interval representation0right-open interval [a, b)1left-open interval (a, b]2open interval (a, b)3closed interval [a, b]>default Redis port?just a localhost@La (0, -1) range - takes all element from a list in lrange, zrange and so onAUnwraps RInline reply.EThrows an exception when called with something different from RInlineBUnwraps RBulk reply.CThrows an exception when called with something different from RBulkC/The same as fromRBulk but with fromJust appliedDUnwraps RMulti replyDThrows an exception when called with something different from RMultiE&Unwraps RMulti reply filled with RBulkDThrows an exception when called with something different from RMultiF4The same as fromRMultiBulk but with fromJust appliedGUnwraps RInt replyBThrows an exception when called with something different from RIntHUnwraps ROk replyAThrows an exception when called with something different from ROkIUnwraps every non-error replyDThrows an exception when called with something different from RMultiJParse Reply as a Message"Throws an exception on parse errorK9Conects to Redis server and returns connection descriptorLClose connectionM.Returns True when connection handler is openedN Returns connection host and portO#Returns currently selected databasePAdds command to renaming mapQ ping - pong$RPong returned if no errors happendsRPassword authentication ROk returnedSEcho the given stringRBulk returnedTQuit and close connectionU7Stop all the clients, save the DB, then quit the serverVBegin the multi-exec block ROk returnedWExecute queued commands3RMulti returned - replies for all executed commandsX)Discard queued commands without execution ROk returnedY$Run commands within multi-exec block3RMulti returned - replies for all executed commandsZ5Add keys to a watch list for Check-and-Set operation.For more information see #http://redis.io/topics/transactions ROk returned[Force unwatch all watched keysFor more information see #http://redis.io/topics/transactions ROk returned\Run actions in a CAS mannerYou have to explicitly add multi/exec commands to an appropriate place in an action sequence. Command sequence will be explicitly terminated with unwatch command even if exec command was sent.&Result of user-defined action returned]Test if the key exists:(RInt 1) returned if the key exists and (RInt 0) otherwise^Remove the keyM(RInt 0) returned if no keys were removed or (RInt n) with removed keys count_Variadic form of DEL&RInt returned - number of deleted keys`>Return the type of the value stored at key in form of a stringRedisKeyType returneda4Returns all the keys matching the glob-style pattern!RMulti filled with RBulk returnedbReturn random key nameRBulk returnedcBRename the key. If key with that name exists it'll be overwritten. ROk returnedd7Rename the key if no keys with destination name exists.;(RInt 1) returned if key was renamed and (RInt 0) otherwisee9Get the number of keys in the currently selected database RInt returnedf:Set an expiration timeout in seconds on the specified key.For more information see http://redis.io/commands/expire;(RInt 1) returned if timeout was set and (RInt 0) otherwisegESet an expiration time in form of UNIX timestamp on the specified keyFor more information see !http://redis.io/commands/expireat;(RInt 1) returned if timeout was set and (RInt 0) otherwisehRemove the timeout from a keyC(RInt 1) returned if the timeout was removed and (RInt 0) otherwiseiSReturn the remining time to live of the key or -1 if key has no associated timeout RInt returnedj9Select the DB with the specified zero-based numeric index ROk returnedkMove the specified key from the currently selected DB to the specified destination DB. If such a key is already exists in the target DB no data modification performed.=(RInt 1) returned if the key was moved and (RInt 0) otherwisel0Delete all the keys of the currently selected DB ROk returnedm1Delete all the keys of all the existing databases ROk returnedn=Returns different information and statistics about the serverfor more information see http://redis.io/commands/info returnedo(Set the string value as value of the key ROk returnedp(Set the key value if key does not exists7(RInt 1) returned if key was set and (RInt 0) otherwiseqKAtomically sets target key value and assigns expiration time. The same as ,multi; set key val; expire key seconds; exec but faster.1Arguments order is the same as in Redis protocol. ROk returnedrAtomically set multiple keys ROk returneds4Atomically set multiple keys if none of them exists.<(RInt 1) returned if all keys was set and (RInt 0) otherwiset#Get the value of the specified key.RBulk returnedu2Atomically set this value and return the old valueRBulk returnedv$Get the values of all specified keys)RMulti filled with RBulk replies returnedwIncrement the key value by one RInt returned with new key valuexIncrement the key value by N RInt returned with new key valueyIncrement the key value by N*(RBulk Double) returned with new key valuezDecrement the key value by one RInt returned with new key value{Decrement the key value by N RInt returned with new key value|%Append string to the string-typed key.RInt returned - the length of resulting string}Returns the substring of the string value stored at key, determined by the offsets start and end (both are inclusive). Negative offsets can be used in order to provide an offset starting from the end of the string.RBulk returned~Returns the substring of the string value stored at key, determined by the offsets start and end (both are inclusive). Negative offsets can be used in order to provide an offset starting from the end of the string.RBulk returnedOverwrites part of the string stored at key, starting at the specified offset, for the entire length of value. If the offset is larger than the current length of the string at key, the string is padded with zero-bytes to make offset fit. Non-existing keys are considered as empty strings, so this command will make sure it holds a string large enough to be able to set value at offset.(RInt returned - resulting string length.MReturns the bit value at offset in the string value stored at key. When offset is beyond the string length, the string is assumed to be a contiguous space with 0 bits. When key does not exist it is assumed to be an empty string, so offset is always out of range and the value is also assumed to be a contiguous space with 0 bits. RInt returned^Sets or clears the bit at offset in the string value stored at key. For more information see http://redis.io/commands/setbit8RInt returned - the original bit value stored at offset.&Returns a length of a string-typed key RInt returnedLAdd string value to the tail of the list-type key. New list length returned RInt returnedVariadic form of rpush RInt returnedLAdd string value to the head of the list-type key. New list length returned RInt returnedVariadic form of LPUSH RInt returnedAdd string value to the head of existing list-type key. New list length returned. If such a key was not exists, list is not created and (RInt 0) returned. RInt returnedAdd string value to the tail of existing list-type key. New list length returned. If such a key was not exists, list is not created and (RInt 0) returned. RInt returnedZInserts value in the list stored at key either before or after the reference value pivot.SRInt returned - resulting list length or (RInt -1) if target element was not found.SReturn lenght of the list. Note that for not-existing keys it returns zero length.,RInt returned or RError if key is not a listReturn the specified range of list elements. List indexed from 0 to (llen - 1). lrange returns slice including "from" and "to" elements, eg. lrange 0 2 will return the first three elements of the list.Parameters "from" and "to" may also be negative. If so it will counts as offset from end ot the list. eg. -1 - is the last element of the list, -2 - is the second from the end and so on.!RMulti filled with RBulk returnedGTrim list so that it will contain only the specified range of elements. ROk returned5Return the specified element of the list by its indexRBulk returned#Set the list's value indexed by an index to the new valueYROk returned if element was set and RError if index is out of range or key is not a listRemove the first count occurrences of the value element from the list.RInt returned - the number of elements removed:Atomically return and remove the first element of the listRBulk returned9Atomically return and remove the last element of the listRBulk returnedAtomically return and remove the last (tail) element of the source list, and push the element as the first (head) element of the destination listRBulk returned Blocking lpopFor more information see http://redis.io/commands/blpopReturn (Just (key, value)) if value was successfully popped from key% list or Nothing of timeout exceeded. Blocking rpopFor more information see http://redis.io/commands/brpopReturn (Just (key, value)) if value was successfully popped from key% list or Nothing of timeout exceeded.Blocking rpoplpushFor more information see #http://redis.io/commands/brpoplpush\Return (Just $ Maybe value) if value was successfully popped or Nothing if timeout exceeded.7Add the specified member to the set value stored at key_(RInt 1) returned if element was added and (RInt 0) if element was already a member of the setVariadic form of SADD0RInt returned - number of actualy added elements<Remove the specified member from the set value stored at key\(RInt 1) returned if element was removed and (RInt 0) if element is not a member of the setVariadic form of SREM(RInt returned - number of removed values?Remove a random element from a Set returning it as return valueRBulk returned2Move the specifided member from one set to anothera(RInt 1) returned if element was moved and (RInt 0) if element is not a member of the source setLReturn the number of elements of the set. If key doesn't exists 0 returned. RInt returnedHTest if element is member of the set. If key doesn't exists 0 returned.H(RInt 1) returned if element is member of the set and (RInt 0) otherwise,Return all the members (elements) of the set!RMulti filled with RBulk returned"Return a random element from a setRBulk returnedWReturn the members of a set resulting from the intersection of all the specifided sets!RMulti filled with RBulk returned The same as ; but instead of being returned the resulting set is stored*RInt returned - resulting set cardinality.PReturn the members of a set resulting from the union of all the specifided sets!RMulti filled with RBulk returned The same as ; but instead of being returned the resulting set is stored*RInt returned - resulting set cardinality.uReturn the members of a set resulting from the difference between the first set provided and all the successive sets!RMulti filled with RBulk returned The same as ; but instead of being returned the resulting set is stored*RInt returned - resulting set cardinality.FAdd the specified member having the specifeid score to the sorted set(RInt 1) returned if new element was added and (RInt 0) if that element was already a member of the sortet set and the score was updatedVariadic form of zaddmRInt returned - the number of elements actually added. Not including elements which scores was just updated./Remove the specified member from the sorted setd(RInt 1) returned if element was removed and (RInt 0) if element was not a member of the sorted setEVariadic form of zrem RInt returned - the number of removed elementsIf member$ already in the sorted set adds the  increment to its score and updates the position of the element in the sorted set accordingly. If member does not exist in the sorted set it is added with increment as score (that is, like if the previous score was virtually zero). The new score of the member is returned.RBulk returned Return the specified elements of the sorted set. Start and end are zero-based indexes. WITHSCORES paramenter indicates if it's needed to return elements with its scores or not. If WITHSCORES is True then the resulting list will be composed of value1, score1, value2, score2 and so on.!RMulti filled with RBulk returnedReturn the specified elements of the sorted set at the specified key. The elements are considered sorted from the highest to the lowerest score!RMulti filled with RBulk returned]Return the all the elements in the sorted set with a score that lays within a given interval!RMulti filled with RBulk returnedReturn the all the elements in the sorted set with a score that lays within a given interval. Elements is ordered from greater score to lower. Interval passed into command must be reversed (first value is greater then second)!RMulti filled with RBulk returned\Count a number of elements of the sorted set with a score that lays within a given interval RInt returnedRemove all the elements in the sorted set with a score that lays within a given interval. For now this command doesn't supports open and semi-open intervals.RInt returned - the number of elements removed6Return the sorted set cardinality (number of elements) RInt returned;Return the score of the specified element of the sorted setRBulk returnedfReturns the rank of member in the sorted set stored at key, with the scores ordered from low to high.>RInt returned or (RBulk Nothing) if value is not found in set.fReturns the rank of member in the sorted set stored at key, with the scores ordered from high to low.>RInt returned or (RBulk Nothing) if value is not found in set.LRemove elements from the sorted set with rank lays within a given interval..RInt returned - the number of elements removed7Create a union of provided sorted sets and store it at  destination keyIf weightsZ is not null then scores of sorted sets used with corresponding weights. If so lenght of weights must be the same as length of sources. Aggregate0 is an option how to aggregate resulting scores.<RInt returned - the number of elements in the resulting set.NCreate an intersectoin of provided sorted sets and store it at destination keyIf weightsZ is not null then scores of sorted sets used with corresponding weights. If so lenght of weights must be the same as length of sources.9Aggregate is an option how to aggregate resulting scores.<RInt returned - the number of elements in the resulting set.3Set the specified hash field to the specified valueM(RInt 0 returned if field value was updated and (RInt 1) if new field created6Return value associated with specified field from hashRBulk returnedRemove field from a hash=(RInt 1) returned if field was removed and (RInt 0) otherwiseVariadic form of HDEL(RInt returned - number of fields deleted7Atomically sets multiple fields within a hash-typed key ROk returned>Get the values of all specified fields from the hash-typed key)RMulti filled with RBulk replies returned,Increment the field value within a hash by N RInt returned with new key value,Increment the field value within a hash by N*(RBulk Double) returned with new key value)Test if hash contains the specified field8(RInt 1) returned if fiels exists and (RInt 0) otherwise;Return the number of fields contained in the specified hash RInt returned+Return all the field names the hash holding RMulti field with RBulk returned1Return all the associated values the hash holding RMulti field with RBulk returnedNReturn all the field names and associated values the hash holding in form of #[field1, value1, field2, value2...]MRMulti field with RBulk returned. If key doesn't exists (RMulti []) returned.Default options for the  command;Sort the elements contained in the List, Set, or Sorted Setfor more information see http://redis.io/commands/sort!RMulti filled with RBulk returnedShortcut for the  with some ' and constant & options!RMulti filled with RBulk returned6Get a number of subscribed channels on this connectioncIt doesn't run any redis commands, number of subscribtions is taken from internal connection stateSubscribe to channels6list of Message with subscribtion information returnedVUnsubscribe from channels. If called with an empty list then unsubscribe all channels6list of Message with subscribtion information returnedSubscribe to patterns6list of Message with subscribtion information returnedVUnsubscribe from patterns. If called with an empty list then unsubscribe all patterns6list of Message with subscribtion information returned!Publish message to target channel=RInt returned - a number of clients that recieves the messageWait for a messages.4Just Message returned or Nothing if timeout exceededSave the whole dataset on disk ROk returnedSave the DB in background ROk returned>Return the UNIX TIME of the last DB save executed with success RInt returned+Rewrites the Append Only File in background ROk returnedcTwo-element list [a, b] converted to closed interval. No static checking of list length performed.&Pair (a, b) converted to open intervalTrivial IsInterval instance!"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJK$hostname or path to the redis socket!port or null if unix sockets usedLMNOPcommand to renamenew nameQRpasswordS what to echoTUVWXYIO action to runZkeys to watch for[\ keys watched action to run] target key^ target key_target keys list` target keyatarget keys patternbc source keydestination keyd source keydestination keyef target keytimeout in secondsg target keyexpiration timeh target keyi target keyjdatabase numberk target keydestination database numberlmno target keyvaluep target keyvalueq target keytimeout in secondsvaluer(key, value) pairss(key, value) pairst target keyu target keyvaluev target keysw target keyx target key incrementy target key incrementz target key{ target key decrement| target keyvalue} target key (start, end)~ target key (start, end) target keyoffsetvalue target key bit offset target key bit offsetbit value - 0 or 1 target key target keyvalue target key values list target keyvalue target key values list target key value to push target key value to push target list!where to insert - before or aftertarget elementinserted value target key target key(from, to) pair target key(from, to) pair target keyindex target keyindex new value target key occurrencesvalue target key target key source keydestination key keys listtimeout keys listtimeout source keydestination keytimeout target keyvalue target key values list target keyvalue target key values list target key source keydestination keyvalue target key target key value to test target key target key keys listwhere to store resulting set sets list keys listwhere to store resulting set sets list keys listwhere to store resulting set sets list target keyscorevalue target keylist of score-value pairs target keyvalue target key values list target key incrementvalue target key(from, to) pairwithscores option target key(from, to) pairwithscores option target keyscores intervallimits (offset, count)withscores option target keyscores interval target keyM(from, to) pair. zremrangebyscore currently doesn't supports open intervals target key target keyvalue target keyvalue target keyvaluedestination key sources keysweights aggregatedestination key sources keysweights aggregate target key field namevaluekey field namekey field namekey field name target key(field, value) pairs target key field names target key field name increment target key field name incrementkey field name target key target keyoptions related key index keyrangechannels to subscribechannels to unsubscribepatterns to subscribepatterns to unsubscribechannelmessagetimeout !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~  465/3210-.!"#$%&'(),+*7=<;:98ABCDEFGHIJ@?>KLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~!"#$%&'(),+*-./32104657=<;:98>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~None3L      !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^  !"#$%&'()*+,-./01234567>?@ABDEFGHIJ      !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^   465/3210-.!"#$%&'(),+*7ABDEFGHIJ@?>      !"#$%&'()*+,-./0123456789:;<=>?@BDACEFGHIJKLMNOPQRSTUVWXYZ[\]^      !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^None24L_=Trivial WithRedis instance storing Redis descriptor in StateT_`a_`_a`_`aNonebAcquire lock. This function is not reentrant so thread can be locked by itself if it try to acquire the same lock before it was released.c:acquire with default last parameter set to 50 millisecondsd>Try to acquire lock once and return result without any timeouteuRelease lock. There is no any guarantees that lock was acquired in this thread. Just release this lock and go forth.bThe lock's nameTimeout in milliseconds.)Time interval between attempts to lock onTrue if lock was acquiredcdebcdebcdebcdeNonefghifghifghifghi      !"#$%&&'())*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~RSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~      redis-0.14Database.Redis.RedisDatabase.Redis.ByteStringClassDatabase.Redis.MonadDatabase.Redis.Monad.StateDatabase.Redis.Utils.LockDatabase.Redis.Utils.Monad.LockDatabase.Redis.InfoDatabase.Redis.Internal RedisInfoBStoBSfromBS$fBS() $fBSDouble$fBSInt$fBS[]$fBSChar$fBSByteString$fBSByteString0Message MPMessageMMessage MPUnsubscribe MPSubscribe MUnsubscribe MSubscribeReplyRMultiRBulkRIntRInlineRErrorRQueuedRPongROk RParseErrorRTimeoutRedisr_lockr_st SortOptionsdesclimitalphasort_byget_objstore AggregateMAXMINSUM IsInterval toIntervalInterval RightOpenLeftOpenOpenClosedLInsertDirectionAFTERBEFORE RedisKeyTypeRTHashRTZSetRTSetRTListRTStringRTNone defaultPort localhosttakeAll fromRInline fromRBulk fromRBulk' fromRMultifromRMultiBulkfromRMultiBulk'fromRIntfromROknoError parseMessageconnect disconnect isConnected getServer getDatabase renameCommandpingauthechoquitshutdownmultiexecdiscard run_multiwatchunwatchrun_casexistsdeldel_getTypekeys randomKeyrenamerenameNxdbsizeexpireexpireAtpersistttlselectmoveflushDbflushAllinfosetsetNxsetExmSetmSetNxgetgetSetmGetincrincrBy incrByFloatdecrdecrByappendsubstrgetrangesetrangegetbitsetbitstrlenrpushrpush_lpushlpush_lpushxrpushxlinsertllenlrangeltrimlindexlsetlremlpoprpop rpoplpushblpopbrpop brpoplpushsaddsadd_sremsrem_spopsmovescard sismembersmembers srandmembersinter sinterStoresunion sunionStoresdiff sdiffStorezaddzadd_zremzrem_zincrByzrange zrevrange zrangebyscorezrevrangebyscorezcountzremrangebyscorezcardzscorezrankzrevrankzremrangebyrank zunionStorezunion zinterStorezinterhsethgethdelhdel_hmsethmgethincrBy hincrByFloathexistshlenhkeyshvalshgetall sortDefaultssort listRelated subscribed subscribe unsubscribe psubscribe punsubscribepublishlistensavebgsavelastsave bgrewriteaof WithRedisgetRedissetRedisRedisM runWithRedis$fWithRedisStateTacquireacquire' acquireOncerelease parseInfofilterEmptyLines startsWithtrimfilterComments parsePairsCommandserverdatabasehandle isSubscribedrenamedCommandsCMBulkCBulkCMInlineCInline RedisStateblocktracebstracebs'newRedisshowbsurnuspaceuminusuplusucolonubucks uasteriskhPutRn takeStateputStateputStateUnmodifiedinStateinState_ withState withState'send lookupRenamed sendCommand sendCommand'recvwait $fShowReply$fIsInterval[]a$fIsInterval(,)a$fIsIntervalIntervala socket_inet socket_unix parseTypefromtorecv_diffClockTimesMs