sad dev diary – Telegram
sad dev diary
342 subscribers
1.67K photos
32 videos
104 links
tech trauma with a twist of shitty memes

i use rust btw
Download Telegram
😁3
😁8👍1
😁2
😁2
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

/// 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 🌚
👍2
😁3👍2
👍1
👍51
😁31👍1
😁3🥰2
👍2😁1
🔥7👍1😁1
3😁1
😁4💯3👍1
😁5
😁7👍1
🌚3
sad dev diary
Photo
there's no excuse for using Python unless you're high as fuck
👍1😁1💯1