K:'      !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~      !"#$%&;Utility class for conversion to and from Strict ByteString - 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 'Redis command variants ()*+Redis connection descriptor ,-.hostname and port pair /currently selected database 0real network connection 1currently in PUB/ SUB mode 23456789:;<8 '()*+,-./01=2>?@ABCDE345678F9:G;<-   '+*)(()*+,-./01-./0123456789:;<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 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] -default Redis port .just a localhost /Ba (0, -1) range - takes all element from a list in lrange, zrange  and so on 0Unwraps RInline reply. FThrows an exception when called with something different from RInline 1Unwraps RBulk reply. DThrows an exception when called with something different from RBulk 2Unwraps RMulti reply EThrows an exception when called with something different from RMulti 3'Unwraps RMulti reply filled with RBulk EThrows an exception when called with something different from RMulti 4Unwraps RInt reply CThrows an exception when called with something different from RInt 5Unwraps ROk reply BThrows an exception when called with something different from ROk 6Unwraps every non-error reply EThrows an exception when called with something different from RMulti 7Parse Reply as a Message #Throws an exception on parse error 8:Conects to Redis server and returns connection descriptor 9Close connection :/Returns True when connection handler is opened ;!Returns connection host and port <$Returns currently selected database = ping - pong %RPong returned if no errors happends >Password authentication  ROk returned  password ?Quit and close connection @8Stop all the clients, save the DB, then quit the server ABegin the multi-exec block  ROk returned BExecute queued commands 3RMulti returned - replys for all executed commands C*Discard queued commands without execution  ROk returned D%Run commands within multi-exec block 3RMulti returned - replys for all executed commands IO actions to run E6Add keys to a watch list for Check-and-Set operation. For more information see  4http://code.google.com/p/redis/wiki/MultiExecCommand  ROk returned keys to watch for FForce unwatch all watched keys For more information see  4http://code.google.com/p/redis/wiki/MultiExecCommand  ROk returned GRun 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 HTest if the key exists ;(RInt 1) returned if the key exists and (RInt 0) otherwise  target key IRemove the key N(RInt 0) returned if no keys were removed or (RInt n) with removed keys count  target key J?Return the type of the value stored at key in form of a string RInline with one of none, string, list, set, zset, hash returned  target key K5Returns all the keys matching the glob-style pattern "RMulti filled with RBulk returned target keys pattern LReturn random key name RInline returned M/Rename the key. If key with that name exists it'll be overwritten.  ROk returned  source key destination key N8Rename the key if no keys with destination name exists. <(RInt 1) returned if key was renamed and (RInt 0) otherwise  source key destination key O:Get the number of keys in the currently selected database RInt returned P;Set an expiration timeout in seconds on the specified key. For more information see  1http://code.google.com/p/redis/wiki/ExpireCommand <(RInt 1) returned if timeout was set and (RInt 0) otherwise  target key timeout in seconds QFSet an expiration time in form of UNIX timestamp on the specified key For more information see  1http://code.google.com/p/redis/wiki/ExpireCommand <(RInt 1) returned if timeout was set and (RInt 0) otherwise  target key timeout in seconds R@Return the remining time to live of the key or -1 if key has no  associated timeout RInt returned  target key S:Select the DB with the specified zero-based numeric index  ROk returned database number T=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 U1Delete all the keys of the currently selected DB  ROk returned V2Delete all the keys of all the existing databases  ROk returned W>Returns different information and statistics about the server for more information see  /http://code.google.com/p/redis/wiki/InfoCommand RBulk returned X)Set the string value as value of the key  ROk returned  target key value Y)Set the key value if key does not exists 8(RInt 1) returned if key was set and (RInt 0) otherwise  target key value ZBAtomically 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 [Atomically set multiple keys  ROk returned (key, value) pairs \5Atomically set multiple keys if none of them exists. =(RInt 1) returned if all keys was set and (RInt 0) otherwise (key, value) pairs ]$Get the value of the specified key. RBulk returned  target key ^3Atomically set this value and return the old value RBulk returned  target key value _%Get the values of all specified keys )RMulti filled with RBulk replys returned  target keys `Increment the key value by one !RInt returned with new key value  target key aIncrement the key value by N !RInt returned with new key value  target key  increment bDecrement the key value by one !RInt returned with new key value  target key cDecrement the key value by N !RInt returned with new key value  target key  decrement d&Append string to the string-typed key /RInt returned - the length of resulting string  target key value e)Get a substring. Indexes are zero-based. RBulk returned f<Add string value to the head of the list-type key. New list  length returned RInt returned  target key value g<Add string value to the tail of the list-type key. New list  length returned RInt returned  target key value h>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 iAReturn 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  traget key (from, to) pair jHTrim list so that it will contain only the specified range of elements.  ROk returned  target key (from, to) pair k6Return the specified element of the list by its index RBulk returned  target key index l 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 mRemove the first count occurrences of the value element from the list /RInt returned - the number of elements removed  target key  occurrences value n;Atomically return and remove the first element of the list RBulk returned  target key o:Atomically return and remove the last element of the list RBulk returned  target key p<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 qBlocking lpop For more information see  0http://code.google.com/p/redis/wiki/BlpopCommand 6RMulti returned filled with key name and popped value  keys list timeout rBlocking rpop For more information see  0http://code.google.com/p/redis/wiki/BlpopCommand 6RMulti returned filled with key name and popped value  keys list timeout s8Add 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 t=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 u@Remove a random element from a Set returning it as return value RBulk returned  target key v3Move 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 w6Return the number of elements of the set. If key doesn' t exists 0  returned. RInt returned  target key x2Test 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 y-Return all the members (elements) of the set "RMulti filled with RBulk returned  target key z#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  ROk returned 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  ROk returned 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  ROk returned 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 withscores option ?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 >Returns sorted set element sequence number counting from zero RInt returned CReturns sorted set element sequence number for reversed sort order RInt returned 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 Default options for the  command <Sort the elements contained in the List, Set, or Sorted Set for more information see  /http://code.google.com/p/redis/wiki/SortCommand "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 HTwo-element list [a, b]) converted to closed interval. No static $ checking of list length performed. I'Pair (a, b) converted to open interval JTrivial IsInterval instance   !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~   (,+*)&' !"%$#01234567/.-89:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~ ! !"%$##$%&''(,+*))*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~uKLM       !"#$%&'()*+,-./01234567        (,+*)&' !"%$#01234567/.-     r     >Trivial WithRedis instance storing Redis descriptor in StateT >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 ";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. N !" !""#&#$%&#$%&#&O      !!"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~>?@ABCDEFGHIJNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~KLM redis-0.7Database.Redis.ByteStringClassDatabase.Redis.RedisDatabase.Redis.MonadDatabase.Redis.Monad.StateDatabase.Redis.Utils.LockDatabase.Redis.Utils.Monad.LockDatabase.Redis.InternalBStoBSfromBSMessage MPMessageMMessage MPUnsubscribe MPSubscribe MUnsubscribe MSubscribeReplyRMultiRBulkRIntRInlineRErrorRQueuedRPongROk RParseErrorRTimeoutRedis r_lock_cntr_lockr_st SortOptionsdesclimitalphasort_byget_objstore AggregateMAXMINSUM IsInterval toIntervalInterval RightOpenLeftOpenOpenClosed defaultPort localhosttakeAll fromRInline fromRBulk fromRMultifromRMultiBulkfromRIntfromROknoError parseMessageconnect disconnect isConnected getServer getDatabasepingauthquitshutdownmultiexecdiscard run_multiwatchunwatchrun_casexistsdelgetTypekeys randomKeyrenamerenameNxdbsizeexpireexpireAtttlselectmoveflushDbflushAllinfosetsetNxsetExmSetmSetNxgetgetSetmGetincrincrBydecrdecrByappendsubstrrpushlpushllenlrangeltrimlindexlsetlremlpoprpop rpoplpushblpopbrpopsaddsremspopsmovescard sismembersmembers srandmembersinter sinterStoresunion sunionStoresdiff sdiffStorezaddzremzincrByzrange zrevrange zrangebyscorezcountzremrangebyscorezcardzscorezrankzrevrankzremrangebyrank zunionStorezunion zinterStorezinterhsethgethdelhmsethmgethincrbyhexistshlenhkeyshvalshgetall sortDefaultssort listRelated subscribed subscribe unsubscribe psubscribe punsubscribepublishlistensavebgsavelastsave bgrewriteaof WithRedisgetRedissetRedisRedisM runWithRedisacquireacquire' acquireOncereleaseCommandCMBulkCBulkCMInlineCInline RedisStateserverdatabasehandle isSubscribedshowbs takeStateputStateputStateUnmodifiedinStateinState_ withStatesend sendCommandrecvwaittracebsurnuspaceuminusuplusucolonubucks uasteriskhPutRn withState' sendCommand'$fIsInterval[]a$fIsInterval(,)a$fIsIntervalIntervaladiffClockTimesMs