Skip to content
This repository was archived by the owner on Apr 20, 2020. It is now read-only.

Commit e9b7fbe

Browse files
authored
add deny-oom on write commands (#59)
1 parent 73e11a3 commit e9b7fbe

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/lib.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -772,16 +772,16 @@ redis_module! {
772772
["json.del", json_del, "write"],
773773
["json.get", json_get, ""],
774774
["json.mget", json_mget, ""],
775-
["json.set", json_set, "write"],
775+
["json.set", json_set, "write deny-oom"],
776776
["json.type", json_type, ""],
777777
["json.numincrby", json_num_incrby, "write"],
778778
["json.nummultby", json_num_multby, "write"],
779779
["json.numpowby", json_num_powby, "write"],
780-
["json.strappend", json_str_append, "write"],
780+
["json.strappend", json_str_append, "write deny-oom"],
781781
["json.strlen", json_str_len, ""],
782-
["json.arrappend", json_arr_append, "write"],
782+
["json.arrappend", json_arr_append, "write deny-oom"],
783783
["json.arrindex", json_arr_index, ""],
784-
["json.arrinsert", json_arr_insert, "write"],
784+
["json.arrinsert", json_arr_insert, "write deny-oom"],
785785
["json.arrlen", json_arr_len, ""],
786786
["json.arrpop", json_arr_pop, "write"],
787787
["json.arrtrim", json_arr_trim, "write"],
@@ -790,7 +790,7 @@ redis_module! {
790790
["json.debug", json_debug, ""],
791791
["json.forget", json_del, "write"],
792792
["json.resp", json_resp, ""],
793-
["json.index", commands::index::index, "write"],
793+
["json.index", commands::index::index, "write deny-oom"],
794794
["json.qget", commands::index::qget, ""],
795795
["json._cacheinfo", json_cache_info, ""],
796796
["json._cacheinit", json_cache_init, "write"],

0 commit comments

Comments
 (0)