shoutout to redis-rs dawgs
just bumped the redis-rs version on the project. well well let's take a look at the new signatures we have
seconds -> i64 -> u64 -> usize
great job now all my constants are cursed 🥴
just bumped the redis-rs version on the project. well well let's take a look at the new signatures we have
/// Set the value and expiration of a key.
fn set_ex<K: ToRedisArgs, V: ToRedisArgs>(key: K, value: V, seconds: u64)
/// Set a key's time to live in seconds.
fn expire<K: ToRedisArgs>(key: K, seconds: i64)
/// Helper enum that is used to define expiry time for SET command
#[derive(Clone, Copy)]
pub enum SetExpiry {
/// EX seconds -- Set the specified expire time, in seconds.
EX(usize),
seconds -> i64 -> u64 -> usize
great job now all my constants are cursed 🥴
😨4
sad dev diary
Photo
I wish all my enemies would have redis-rs as a project dependency 🌚