Relative Content

Tag Archive for goredisgo-redis

go-redis FTSearch returns empty result

I’m able to create an index and load data using go-redis. Also, I’m able to search but only via CLI. That means the index is created properly and is searchable. It returns the correct results.

How can I listen for the expiration of a key in Redis using Go?

I am generating a key that will expire in Redis. As a programming language, I am using Go. The problem is that I need to know when something expires, because based on that, I know which key is expiring or what data it contains, and I can know when it is no longer in Redis. How can I listen for the expiration event using Golang? I have seen examples in TypeScript but not in Golang