Skip to content

Commit 18e0331

Browse files
Danni Moiseyevgavrie
authored andcommitted
Allow accessing low level raw Redis Context pointer
1 parent 7e31938 commit 18e0331

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/context/mod.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,4 +209,8 @@ impl Context {
209209
pub fn create_string(&self, s: &str) -> RedisString {
210210
RedisString::create(self.ctx, s)
211211
}
212+
213+
pub fn get_raw(&self) -> *mut raw::RedisModuleCtx {
214+
return self.ctx;
215+
}
212216
}

0 commit comments

Comments
 (0)