Skip to content

Commit

Permalink
Add support for unlink (#241)
Browse files Browse the repository at this point in the history
* add support for unlink

* fix format
  • Loading branch information
gkorland authored Sep 7, 2022
1 parent 109b6ac commit ba6dc70
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/key.rs
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,14 @@ impl RedisKeyWritable {
REDIS_OK
}

/// # Panics
///
/// Will panic if `RedisModule_UnlinkKey` is missing in redismodule.h
pub fn unlink(&self) -> RedisResult {
unsafe { raw::RedisModule_UnlinkKey.unwrap()(self.key_inner) };
REDIS_OK
}

/// # Panics
///
/// Will panic if `RedisModule_KeyType` is missing in redismodule.h
Expand Down

0 comments on commit ba6dc70

Please sign in to comment.