![]() TypeError – if len of pairs is not event number psetex ( key, milliseconds, value ) ¶ TypeError – if len of args equals 1 and it is not a dict TypeError – if len of args is not event number Set multiple keys to multiple values or unpack dict to keys & values. TypeError – if increment is not int mget ( key, *keys, encoding= ) ¶ Increment the float value of a key by the given amount. TypeError – if increment is not int incrbyfloat ( key, increment ) ¶ Increment the integer value of a key by the given amount. Increment the integer value of a key by one. Set the string value of a key and return its old value. TypeError – if start or end is not int getset ( key, value, *, encoding= ) ¶ Get a substring of the string stored at a key. Getrange ( key, start, end, *, encoding= ) ¶ Returns the bit value at offset in the string value stored at key. TypeError – if decrement is not int get ( key, *, encoding= ) ¶ decrby ( key, decrement ) ¶ĭecrement the integer value of a key by the given number. ValueError – if bit is not 0 or 1 decr ( key ) ¶ĭecrement the integer value of a key by one. bitpos ( key, bit, start=None, end=None ) ¶įind first bit set or clear in a string. Perform bitwise XOR operations between strings. Perform bitwise OR operations between strings. Perform bitwise NOT operations between strings. Perform bitwise AND operations between strings. TypeError – if only start or end specified. StringCommandsMixin ¶įor commands details see: append ( key, value ) ¶Īppend a value to key. If none of WITH* flags are set – list of strings returned: Matching a given maximum distance from a point. Query a sorted set representing a geospatial index to fetch members List georadius ( key, longitude, latitude, radius, unit='m', *, with_dist=False, with_hash=False, with_coord=False, count=None, sort=None, encoding= ) ¶ Returns longitude and latitude of members of a geospatial index. List geopos ( key, member, *members, **kwargs ) ¶ ![]() Returns members of a geospatial index as standard geohash strings. List geohash ( key, member, *members, **kwargs ) ¶ Returns the distance between two members of a geospatial index. Int geodist ( key, member1, member2, unit='m' ) ¶ GeoCommandsMixin ¶įor commands details see: geoadd ( key, longitude, latitude, member, *args, **kwargs ) ¶Īdd one or more geospatial items in the geospatial index represented scan ( cursor=0, match=None, count=None ) ¶ ValueError – if key = newkey restore ( key, ttl, value ) ¶Ĭreates a key associated with a value that is obtained via DUMP. Renames key to newkey only if newkey does not exist. ValueError – if key = newkey renamenx ( key, newkey ) ¶ Return a random key from the currently selected database. Special return values (starting with Redis 2.8):Ĭommand returns -2 if the key does not exist.Ĭommand returns -1 if the key exists but has no associated expire. Returns time-to-live for a key, in milliseconds. TypeError – if timeout is not int pttl ( key ) ¶ Set expire timestamp on key, timestamp in milliseconds. TypeError – if timeout is not int pexpireat ( key, timestamp ) ¶ With the specified key (OBJECT REFCOUNT). Returns the number of references of the value associated Returns the number of seconds since the object is not requestedīy read or write operations (OBJECT IDLETIME). To store the value associated with a key (OBJECT ENCODING). Returns the kind of internal representation used in order Move key from currently selected database to specified destination. Keys argument must be list/tuple of keys to migrate. migrate_keys ( host, port, keys, dest_db, timeout, *, copy=False, replace=False ) ¶Ītomically transfer keys from one Redis instance to another one. migrate ( host, port, key, dest_db, timeout, *, copy=False, replace=False ) ¶Ītomically transfer a key from a Redis instance to another one. print ( 'Matched:', key ) keys ( pattern, *, encoding= ) ¶ Set to True when MULTI command was issued. property encoding ¶Ĭurrent set codec or None. echo ( message, *, encoding= ) ¶Įcho the given string. property db ¶Ĭurrently selected db index. This method wraps call to () close ( ) ¶Ĭlose client connections. ![]() Redis connection address (if applicable). Pool_or_conn ( AbcConnection) – Can be either RedisConnection Gathers in one place Redis commands implemented in mixins. This section contains reference for mixins implementing Redis commands.ĭescriptions are taken from docstrings so may not contain proper markup. Aioredis.Redis - Commands Mixins Reference ¶
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |