zP      !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~      !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNO;Utility class for conversion to and from Strict ByteString PQRSTUPP0message recieved by pattern message recieved pattern unsubscribed pattern subscribed  unsubscribed  subscribed Redis reply variants 9Complex reply. It may consists of various type of replys Multiline reply Integer reply Simple oneline reply Some kind of server-side error Used inside multi-exec block Reply for the ping command "Ok" reply *Error converting value from ByteString. It's a client-side error. Timeout. Currently unused VRedis command variants WXYZRedis connection descriptor [\]hostname and port pair ^currently selected database _real network connection `currently in PUB/ SUB mode amap of the renamed commands bcdefghijklmn= VWXYZ[\]^_`aopqbcrstuvwxydefghizjkl{mn0   VZYXWWXYZ[\]^_`a\]^_`abcdefghijklmnOptions 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 itself  pair (a,b) for open interval  two-member list [a, b]L for closed interval (throws runtime error if the list length is different) ()Interval representation *right-open interval [a, b) +left-open interval (a, b] ,open interval (a, b) -closed interval [a, b] ./012345678default Redis port 9just a localhost :Ba (0, -1) range - takes all element from a list in lrange, zrange  and so on ;Unwraps RInline reply. FThrows an exception when called with something different from RInline <Unwraps RBulk reply. DThrows an exception when called with something different from RBulk =0The same as fromRBulk but with fromJust applied >Unwraps RMulti reply EThrows an exception when called with something different from RMulti ?'Unwraps RMulti reply filled with RBulk EThrows an exception when called with something different from RMulti @5The same as fromRMultiBulk but with fromJust applied AUnwraps RInt reply CThrows an exception when called with something different from RInt BUnwraps ROk reply BThrows an exception when called with something different from ROk CUnwraps every non-error reply EThrows an exception when called with something different from RMulti DParse Reply as a Message #Throws an exception on parse error E:Conects to Redis server and returns connection descriptor %hostname or path to the redis socket "port or null if unix sockets used |}FClose connection G/Returns True when connection handler is opened H!Returns connection host and port I$Returns currently selected database JAdds command to renaming map command to rename  new name K ping - pong %RPong returned if no errors happends LPassword authentication  ROk returned  password MEcho the given string RBulk returned  what to echo NQuit and close connection O8Stop all the clients, save the DB, then quit the server PBegin the multi-exec block  ROk returned QExecute queued commands 3RMulti returned - replys for all executed commands R*Discard queued commands without execution  ROk returned S%Run commands within multi-exec block 3RMulti returned - replys for all executed commands IO action to run T6Add keys to a watch list for Check-and-Set operation. For more information see  #http://redis.io/topics/transactions  ROk returned keys to watch for UForce unwatch all watched keys For more information see  #http://redis.io/topics/transactions  ROk returned VRun actions in a CAS manner  You have to explicitly add multi/ exec commands to an appropriate B 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  keys watched action to run WTest if the key exists ;(RInt 1) returned if the key exists and (RInt 0) otherwise  target key XRemove the key N(RInt 0) returned if no keys were removed or (RInt n) with removed keys count  target key ~Y?Return the type of the value stored at key in form of a string RedisKeyType returned  target key Z5Returns all the keys matching the glob-style pattern "RMulti filled with RBulk returned target keys pattern [Return random key name RBulk returned \/Rename the key. If key with that name exists it'll be overwritten.  ROk returned  source key destination key ]8Rename the key if no keys with destination name exists. <(RInt 1) returned if key was renamed and (RInt 0) otherwise  source key destination key ^:Get the number of keys in the currently selected database RInt returned _;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) otherwise  target key timeout in seconds `FSet an expiration time in form of UNIX timestamp on the specified key For more information see  !http://redis.io/commands/expireat <(RInt 1) returned if timeout was set and (RInt 0) otherwise  target key expiration time aRemove the timeout from a key D(RInt 1) returned if the timeout was removed and (RInt 0) otherwise  target key b@Return the remining time to live of the key or -1 if key has no  associated timeout RInt returned  target key c:Select the DB with the specified zero-based numeric index  ROk returned database number d=Move the specified key from the currently selected DB to the B 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) otherwise  target key destination database number e1Delete all the keys of the currently selected DB  ROk returned f2Delete all the keys of all the existing databases  ROk returned g>Returns different information and statistics about the server for more information see  http://redis.io/commands/info  returned h)Set the string value as value of the key  ROk returned  target key value i)Set the key value if key does not exists 8(RInt 1) returned if key was set and (RInt 0) otherwise  target key value jBAtomically sets target key value and assigns expiration time. The  same as ,multi; set key val; expire key seconds; exec but faster. 2Arguments order is the same as in Redis protocol.  ROk returned  target key timeout in seconds value kAtomically set multiple keys  ROk returned (key, value) pairs l5Atomically set multiple keys if none of them exists. =(RInt 1) returned if all keys was set and (RInt 0) otherwise (key, value) pairs m$Get the value of the specified key. RBulk returned  target key n3Atomically set this value and return the old value RBulk returned  target key value o%Get the values of all specified keys )RMulti filled with RBulk replys returned  target keys pIncrement the key value by one !RInt returned with new key value  target key qIncrement the key value by N !RInt returned with new key value  target key  increment rDecrement the key value by one !RInt returned with new key value  target key sDecrement the key value by N !RInt returned with new key value  target key  decrement t&Append string to the string-typed key /RInt returned - the length of resulting string  target key value u9Returns the substring of the string value stored at key, 3 determined by the offsets start and end (both are A inclusive). Negative offsets can be used in order to provide an - offset starting from the end of the string. RBulk returned  target key  (start, end) v9Returns the substring of the string value stored at key, 3 determined by the offsets start and end (both are A inclusive). Negative offsets can be used in order to provide an - offset starting from the end of the string. RBulk returned  target key  (start, end) w=Overwrites part of the string stored at key, starting at the D specified offset, for the entire length of value. If the offset is D larger than the current length of the string at key, the string is B 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.  target key offset value x>Returns the bit value at offset in the string value stored at E key. When offset is beyond the string length, the string is assumed E to be a contiguous space with 0 bits. When key does not exist it is E assumed to be an empty string, so offset is always out of range and A the value is also assumed to be a contiguous space with 0 bits. RInt returned  target key  bit offset yDSets or clears the bit at offset in the string value stored at key.  For more information see  http://redis.io/commands/setbit 9RInt returned - the original bit value stored at offset.  target key  bit offset bit value - 0 or 1 z'Returns a length of a string-typed key RInt returned  target key {<Add string value to the tail of the list-type key. New list  length returned RInt returned  target key value |<Add string value to the head of the list-type key. New list  length returned RInt returned  target key value }BAdd string value to the head of existing list-type key. New list D length returned. If such a key was not exists, list is not created  and (RInt 0) returned. RInt returned  target key value to push ~AAdd string value to the tail of existing list-type key. New list E length returned. If such a key was not exists, list is not created  and (RInt 0) returned. RInt returned  target key value to push ?Inserts value in the list stored at key either before or after  the reference value pivot. TRInt returned - resulting list length or (RInt -1) if target element was not found.  target list "where to insert - before or after target element inserted value >Return lenght of the list. Note that for not-existing keys it  returns zero length. -RInt returned or RError if key is not a list  target key AReturn the specified range of list elements. List indexed from 0 / to (llen - 1). lrange returns slice including "from" and "to" B 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 B offset from end ot the list. eg. -1 - is the last element of the 2 list, -2 - is the second from the end and so on. "RMulti filled with RBulk returned  target key (from, to) pair HTrim list so that it will contain only the specified range of elements.  ROk returned  target key (from, to) pair 6Return the specified element of the list by its index RBulk returned  target key index  Set the list's value indexed by an index to the new value >ROk returned if element was set and RError if index is out of  range or key is not a list  target key index  new value Remove the first count occurrences of the value element from the list /RInt returned - the number of elements removed  target key  occurrences value ;Atomically return and remove the first element of the list RBulk returned  target key :Atomically return and remove the last element of the list RBulk returned  target key <Atomically return and remove the last (tail) element of the B source list, and push the element as the first (head) element of  the destination list RBulk returned  source key destination key Blocking lpop For more information see  http://redis.io/commands/blpop Return (Just (key, value)) if value was successfully popped from key& list or Nothing of timeout exceeded.  keys list timeout Blocking rpop For more information see  http://redis.io/commands/brpop Return (Just (key, value)) if value was successfully popped from key& list or Nothing of timeout exceeded.  keys list timeout Blocking rpoplpush For more information see  #http://redis.io/commands/brpoplpush ]Return (Just $ Maybe value) if value was successfully popped or Nothing if timeout exceeded.  source key destination key timeout 8Add the specified member to the set value stored at key C(RInt 1) returned if element was added and (RInt 0) if element was  already a member of the set  target key value =Remove the specified member from the set value stored at key A(RInt 1) returned if element was removed and (RInt 0) if element  is not a member of the set  target key value @Remove a random element from a Set returning it as return value RBulk returned  target key 3Move the specifided member from one set to another ?(RInt 1) returned if element was moved and (RInt 0) if element # is not a member of the source set  source key destination key value 6Return the number of elements of the set. If key doesn' t exists 0  returned. RInt returned  target key 2Test if element is member of the set. If key doesn' t exists 0  returned. I(RInt 1) returned if element is member of the set and (RInt 0) otherwise  target key value to test -Return all the members (elements) of the set "RMulti filled with RBulk returned  target key #Return a random element from a set RBulk returned  target key ?Return the members of a set resulting from the intersection of  all the specifided sets "RMulti filled with RBulk returned  keys list  The same as 1 but instead of being returned the resulting set  is stored +RInt returned - resulting set cardinality. where to store resulting set  sets list @Return the members of a set resulting from the union of all the  specifided sets "RMulti filled with RBulk returned  keys list  The same as 1 but instead of being returned the resulting set  is stored +RInt returned - resulting set cardinality. where to store resulting set  sets list BReturn the members of a set resulting from the difference between 4 the first set provided and all the successive sets "RMulti filled with RBulk returned  keys list  The same as - but instead of being returned the resulting  set is stored +RInt returned - resulting set cardinality. where to store resulting set  sets list BAdd the specified member having the specifeid score to the sorted  set @(RInt 1) returned if new element was added and (RInt 0) if that B element was already a member of the sortet set and the score was  updated  target key score value 0Remove the specified member from the sorted set A(RInt 1) returned if element was removed and (RInt 0) if element $ was not a member of the sorted set  target key value If member$ already in the sorted set adds the  increment to its A score and updates the position of the element in the sorted set E accordingly. If member does not exist in the sorted set it is added B with increment as score (that is, like if the previous score was ; virtually zero). The new score of the member is returned. RBulk returned  target key  increment value ?Return the specified elements of the sorted set. Start and end > are zero-based indexes. WITHSCORES paramenter indicates if it's D needed to return elements with its scores or not. If WITHSCORES is B True then the resulting list will be composed of value1, score1,  value2, score2 and so on. "RMulti filled with RBulk returned  target key (from, to) pair withscores option AReturn the specified elements of the sorted set at the specified A key. The elements are considered sorted from the highest to the  lowerest score "RMulti filled with RBulk returned  target key (from, to) pair withscores option @Return the all the elements in the sorted set with a score that  lays within a given interval "RMulti filled with RBulk returned  target key scores interval limits (offset, count) withscores option @Return 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 returned  target key scores interval ARemove all the elements in the sorted set with a score that lays 4 within a given interval. For now this command doesn't supports open  and semi-open intervals /RInt returned - the number of elements removed  target key "(from, to) pair. zremrangebyscore  currently doesn' t supports  open intervals 7Return the sorted set cardinality (number of elements) RInt returned  target key <Return the score of the specified element of the sorted set RBulk returned  target key value AReturns 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.  target key value AReturns 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.  target key value BRemove elements from the sorted set with rank lays within a given  interval. /RInt returned - the number of elements removed 7Create a union of provided sorted sets and store it at  destination key If weights2 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.  Aggregate1 is an option how to aggregate resulting scores. =RInt returned - the number of elements in the resulting set. destination key  sources keys weights  aggregate OCreate an intersectoin of provided sorted sets and store it at destination key If weights2 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. :Aggregate is an option how to aggregate resulting scores. =RInt returned - the number of elements in the resulting set. destination key  sources keys weights  aggregate 4Set the specified hash field to the specified value N(RInt 0 returned if field value was updated and (RInt 1) if new field created  target key  field name value 7Return value associated with specified field from hash RBulk returned key  field name Remove field from a hash >(RInt 1) returned if field was removed and (RInt 0) otherwise key  field name 8Atomically sets multiple fields within a hash-typed key  ROk returned  target key (field, value) pairs ?Get the values of all specified fields from the hash-typed key )RMulti filled with RBulk replys returned  target key  field names -Increment the field value within a hash by N !RInt returned with new key value  target key  field name  increment *Test if hash contains the specified field 9(RInt 1) returned if fiels exists and (RInt 0) otherwise key  field name <Return the number of fields contained in the specified hash RInt returned ,Return all the field names the hash holding !RMulti field with RBulk returned 2Return all the associated values the hash holding !RMulti field with RBulk returned BReturn all the field names and associated values the hash holding  in form of #[field1, value1, field2, value2...] .RMulti field with RBulk returned. If key doesn't exists (RMulti [] ) returned.  target key Default options for the  command <Sort the elements contained in the List, Set, or Sorted Set for more information see  http://redis.io/commands/sort "RMulti filled with RBulk returned  target key options Shortcut for the  with some ! and constant    options "RMulti filled with RBulk returned  related key  index key range 7Get a number of subscribed channels on this connection It doesn';t run any redis commands, number of subscribtions is taken  from internal connection state Subscribe to channels 7list of Message with subscribtion information returned channels to subscribe =Unsubscribe from channels. If called with an empty list then  unsubscribe all channels 7list of Message with subscribtion information returned channels to unsubscribe Subscribe to patterns 7list of Message with subscribtion information returned patterns to subscribe =Unsubscribe from patterns. If called with an empty list then  unsubscribe all patterns 7list of Message with subscribtion information returned patterns to unsubscribe "Publish message to target channel >RInt returned - a number of clients that recieves the message channel message Wait for a messages. 5Just Message returned or Nothing if timeout exceeded timeout Save the whole dataset on disk  ROk returned Save 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 returned Two-element list [a, b]) converted to closed interval. No static $ checking of list length performed. 'Pair (a, b) converted to open interval Trivial IsInterval instance   !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~ľ   .0/)-,+*'( !"#&%$1765432;<=>?@ABCD:98EFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|~} !" !"#&%$$%&'(()-,+**+,-.0//0176543223456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~      !"#$%&'()*+,-./0123456789:;<=>?@ABCDE  !"#$%&'()*+,-./0189:;<>?ABCD      !"#$%&'()*+,-./0123456789:;<=>?@ABCDE   .0/)-,+*'( !"#&%$1;<>?ABCD:98      !"#$%&'()+-*,./0123456789:;<=>?@ABCDE      !"#$%&'()*+,-./0123456789:;<=>?@ABCDEF>Trivial WithRedis instance storing Redis descriptor in StateT GFGFGFGH>Acquire lock. This function is not reentrant so thread can be C locked by itself if it try to acquire the same lock before it was  released. The lock's name Timeout in milliseconds. *Time interval between attempts to lock on True if lock was acquired K;acquire with default last parameter set to 50 milliseconds ?Try to acquire lock once and return result without any timeout @Release lock. There is no any guarantees that lock was acquired 6 in this thread. Just release this lock and go forth. HIJKHIJKHKLOLMNOLMNOLO      !"##$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~LMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~ redis-0.11Database.Redis.ByteStringClassDatabase.Redis.RedisDatabase.Redis.MonadDatabase.Redis.Monad.StateDatabase.Redis.Utils.LockDatabase.Redis.Utils.Monad.LockDatabase.Redis.InfoDatabase.Redis.InternalBStoBSfromBS RedisInfoMessage MPMessageMMessage MPUnsubscribe MPSubscribe MUnsubscribe MSubscribeReplyRMultiRBulkRIntRInlineRErrorRQueuedRPongROk RParseErrorRTimeoutRedis r_lock_cntr_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_casexistsdelgetTypekeys randomKeyrenamerenameNxdbsizeexpireexpireAtpersistttlselectmoveflushDbflushAllinfosetsetNxsetExmSetmSetNxgetgetSetmGetincrincrBydecrdecrByappendsubstrgetrangesetrangegetbitsetbitstrlenrpushlpushlpushxrpushxlinsertllenlrangeltrimlindexlsetlremlpoprpop rpoplpushblpopbrpop brpoplpushsaddsremspopsmovescard sismembersmembers srandmembersinter sinterStoresunion sunionStoresdiff sdiffStorezaddzremzincrByzrange zrevrange zrangebyscorezrevrangebyscorezcountzremrangebyscorezcardzscorezrankzrevrankzremrangebyrank zunionStorezunion zinterStorezinterhsethgethdelhmsethmgethincrbyhexistshlenhkeyshvalshgetall sortDefaultssort listRelated subscribed subscribe unsubscribe psubscribe punsubscribepublishlistensavebgsavelastsave bgrewriteaof WithRedisgetRedissetRedisRedisM runWithRedisacquireacquire' acquireOncerelease parseInfoinfoPinfoLine emptyLine commentLinekeyLineCommandCMBulkCBulkCMInlineCInline RedisStateserverdatabasehandle isSubscribedrenamedCommandsnewRedisshowbs takeStateputStateputStateUnmodifiedinStateinState_ withStatesend lookupRenamed sendCommandrecvwaitblocktracebstracebs'urnuspaceuminusuplusucolonubucks uasteriskhPutRn withState' sendCommand' socket_inet socket_unix parseType$fIsInterval[]a$fIsInterval(,)a$fIsIntervalIntervaladiffClockTimesMs