diff options
Diffstat (limited to 'iredis/data')
-rw-r--r-- | iredis/data/command_syntax.csv | 5 | ||||
-rw-r--r-- | iredis/data/iredisrc | 15 |
2 files changed, 18 insertions, 2 deletions
diff --git a/iredis/data/command_syntax.csv b/iredis/data/command_syntax.csv index 477c15c..fbaf47b 100644 --- a/iredis/data/command_syntax.csv +++ b/iredis/data/command_syntax.csv @@ -87,6 +87,7 @@ hash,HKEYS,command_key,command_hkeys hash,HLEN,command_key,render_int hash,HMGET,command_key_fields,render_list hash,HMSET,command_key_fieldvalues,render_bulk_string +hash,HRANDFIELD,command_key_count_withvalues,render_list_or_string hash,HSCAN,command_key_cursor_match_pattern_count,command_hscan hash,HSET,command_key_field_value,render_int hash,HSETNX,command_key_field_value,render_int @@ -103,14 +104,14 @@ list,LINDEX,command_key_position,render_bulk_string list,LINSERT,command_key_positionchoice_pivot_value,render_int list,LLEN,command_key,render_int list,LPOS,command_lpos,render_list_or_string -list,LPOP,command_key,render_bulk_string +list,LPOP,command_key,render_list_or_string list,LPUSH,command_key_values,render_int list,LPUSHX,command_key_values,render_int list,LRANGE,command_key_start_end,render_list list,LREM,command_key_position_value,render_int list,LSET,command_key_position_value,render_simple_string list,LTRIM,command_key_start_end,render_simple_string -list,RPOP,command_key,render_bulk_string +list,RPOP,command_key,render_list_or_string list,RPOPLPUSH,command_key_newkey,render_bulk_string list,RPUSH,command_key_values,render_int list,RPUSHX,command_key_value,render_int diff --git a/iredis/data/iredisrc b/iredis/data/iredisrc index bf79e90..6db02a7 100644 --- a/iredis/data/iredisrc +++ b/iredis/data/iredisrc @@ -58,6 +58,21 @@ warning = True # eg. ~/.iredis.log log_location = +# You can change the prompt str, if left blank, the default prompt would be: +# 127.0.0.1:6379> +# which is rendered by "{host}:{port}[{db}]> " +# supported interpolations: +# {client_name} +# {db} +# {host} +# {path} +# {port} +# {username} +# {client_addr} +# {client_id} +# The prompt string uses python string format engine +prompt = + # History file location history_location = ~/.iredis_history |