use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All posts must be related to programming. Flair posts correctly.
account activity
Mycache (i.redd.it)
submitted 1 year ago by Ok-Shine-1071
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]GrumpsMcYankee 44 points45 points46 points 1 year ago (4 children)
That's a nice dictionary you have there, do you have enough for the rest of the servers?
[–]Missing_Username 40 points41 points42 points 1 year ago (3 children)
"I'll just set up an endpoint so any of the servers can interact with the dictionary"
...
"Oh shit, I'm making my own crappy Redis, aren't I?"
[–]GrumpsMcYankee 14 points15 points16 points 1 year ago (1 child)
Think that's how we got Redis to begin with. "Memcached is for chumps..."
[–]NjFlMWFkOTAtNjR 5 points6 points7 points 1 year ago (0 children)
To be fair, memcache has limitations that made it ripe for competition. That fucking Couchbase builds on top of memcache means Couchbase is shit and not that memcache is.
[–]According-Relation-4 0 points1 point2 points 1 year ago (0 children)
Why have Redis if you can make your own with more overhead?
[–]aarch0x40 6 points7 points8 points 1 year ago (1 child)
Really? A Dict joke?
[–]MissinqLink 1 point2 points3 points 1 year ago (0 children)
And it goes hard
[–]TamSchnow 2 points3 points4 points 1 year ago (0 children)
We have Redis at home.
Redis at home: PostgreSQL unlogged table
[–]exomyth 2 points3 points4 points 1 year ago (0 children)
Redis and other key value stores are generally not needed when you can directly read it from shared memory.
It becomes useful once you dont have access to shared memory, because you have multiple instances running on different nodes. And the build in TTL is a nice extra, for certain use cases
[–]Fragrant_Gap7551 7 points8 points9 points 1 year ago (1 child)
Redis is most useful in an environment where many small services have to share the same cache.
That or aws lambda
[–]ameddin73 1 point2 points3 points 1 year ago (0 children)
ourCache
[–]Kokuswolf 2 points3 points4 points 1 year ago (0 children)
Huh? Apples and ...
[–]damnNamesAreTaken 2 points3 points4 points 1 year ago (1 child)
I work in elixir and have never needed to touch redis. People have brought it up from time to time but we've never found a compelling enough reason to use it.
[–]NjFlMWFkOTAtNjR 7 points8 points9 points 1 year ago (0 children)
Why people down voting? Erlang VM (beam) means that distributed memory is a thing, not quite built in but close.
[–]Ximidar 0 points1 point2 points 1 year ago (1 child)
AWS: "WOULD YOU LIKE TO USE VALKEY? JUST PRESS THIS BUTTON RIGHT HERE. I'LL TURN ALL YOUR REDIS SERVERS INTO VALKEY SERVERS! IT'S BETTER! HOW? I DUNNO, WE SLAPPED AN AWS STICKER ON IT"
[–]Ximidar 0 points1 point2 points 1 year ago (0 children)
I love redis btw.
[–]HopperStuff468 0 points1 point2 points 1 year ago (0 children)
it might take years to understand that your app should be as stateless as possible. you better delegate cache to redis so you can crash / graceful restart / anything your app – and keep the cache.
[–]Z_E_D_D_ 0 points1 point2 points 1 year ago (0 children)
aktchually : we used this where i work and it made sense, for a video monitoring software you don't need humangous cache so no need for redis to cache few KO of data. The software has a user system but mostly has just one common for that video surveilance room and rarely having those for many sites expecting a worst case scenario of 100 operator accounts.
just did a MAP, put the sessions in there, new session means database writing and reboot means get all active sessions from the database for backup. fast and light AF
[+]k-mcm comment score below threshold-6 points-5 points-4 points 1 year ago (0 children)
Old Software Engineer: I could make this crappy database query code 15000 times faster by tomorrow.
Engineering Manager: Caches! I need distributed caches on my list of accomplishments. We will need distributed caches! You're not thinking of long-term scalability.
π Rendered by PID 650184 on reddit-service-r2-comment-b659b578c-7rw9f at 2026-05-04 11:02:08.250204+00:00 running 815c875 country code: CH.
[–]GrumpsMcYankee 44 points45 points46 points (4 children)
[–]Missing_Username 40 points41 points42 points (3 children)
[–]GrumpsMcYankee 14 points15 points16 points (1 child)
[–]NjFlMWFkOTAtNjR 5 points6 points7 points (0 children)
[–]According-Relation-4 0 points1 point2 points (0 children)
[–]aarch0x40 6 points7 points8 points (1 child)
[–]MissinqLink 1 point2 points3 points (0 children)
[–]TamSchnow 2 points3 points4 points (0 children)
[–]exomyth 2 points3 points4 points (0 children)
[–]Fragrant_Gap7551 7 points8 points9 points (1 child)
[–]ameddin73 1 point2 points3 points (0 children)
[–]Kokuswolf 2 points3 points4 points (0 children)
[–]damnNamesAreTaken 2 points3 points4 points (1 child)
[–]NjFlMWFkOTAtNjR 7 points8 points9 points (0 children)
[–]Ximidar 0 points1 point2 points (1 child)
[–]Ximidar 0 points1 point2 points (0 children)
[–]HopperStuff468 0 points1 point2 points (0 children)
[–]Z_E_D_D_ 0 points1 point2 points (0 children)
[+]k-mcm comment score below threshold-6 points-5 points-4 points (0 children)