Skip to main content

2 posts tagged with "redis"

View All Tags

· One min read
Ang Xuan Ze

Introduction

So in the AffiliateManager project, a lot of endpoints are being cached. And somehow for some reason, the past me decided that a TTL of 0 is fine. And that left with me with a redis fill with thousands of keys :(

Now, time to purge it!

But I want to keep some of them, like session tokens but will like to clear those that are related to id etc.

So here's how...

· 4 min read
Ang Xuan Ze

Introduction

So I was working on SeaHungerGamesBot, and one major pain point was: when a certain user started the conversation, but did not proceed from there. (probably due to the hassle of copy-pasting the API key?)

Since my current goal is to have as many active users as possible, that was a wasted opportunity. So my objective was to keep track of the users that started pressing some commands, but backed off and disappear afterwards. I call them the potential users.