diff options
author | Meir Shpilraien (Spielrein) <meir@redislabs.com> | 2020-08-09 06:11:47 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-09 06:11:47 +0300 |
commit | 3f494cc49d25929f27fa75a78d9921a9dee771f2 (patch) | |
tree | d2686c3a680cadea1670a3a11aac858f8b8c9fde /tests/unit/moduleapi | |
parent | e2d64485b8262971776fb1be803c7296c98d1572 (diff) | |
download | redis-3f494cc49d25929f27fa75a78d9921a9dee771f2.tar.gz |
see #7544, added RedisModule_HoldString api. (#7577)
Added RedisModule_HoldString that either returns a
shallow copy of the given String (by increasing
the String ref count) or a new deep copy of String
in case its not possible to get a shallow copy.
Co-authored-by: Itamar Haber <itamar@redislabs.com>
Diffstat (limited to 'tests/unit/moduleapi')
-rw-r--r-- | tests/unit/moduleapi/keyspace_events.tcl | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/unit/moduleapi/keyspace_events.tcl b/tests/unit/moduleapi/keyspace_events.tcl index cb959ab52..5b3db0c0a 100644 --- a/tests/unit/moduleapi/keyspace_events.tcl +++ b/tests/unit/moduleapi/keyspace_events.tcl @@ -11,12 +11,12 @@ tags "modules" { r zadd t 1 f1 2 f2 r xadd s * f v r debug reload - assert_equal 1 [r keyspace.is_key_loaded x] - assert_equal 1 [r keyspace.is_key_loaded y] - assert_equal 1 [r keyspace.is_key_loaded z] - assert_equal 1 [r keyspace.is_key_loaded p] - assert_equal 1 [r keyspace.is_key_loaded t] - assert_equal 1 [r keyspace.is_key_loaded s] + assert_equal {1 x} [r keyspace.is_key_loaded x] + assert_equal {1 y} [r keyspace.is_key_loaded y] + assert_equal {1 z} [r keyspace.is_key_loaded z] + assert_equal {1 p} [r keyspace.is_key_loaded p] + assert_equal {1 t} [r keyspace.is_key_loaded t] + assert_equal {1 s} [r keyspace.is_key_loaded s] } } }
\ No newline at end of file |