---
title: "Discussion on \"Redis GETEX: How to Implement Sliding TTL for Cache Entries\" | Hashnode"
description: "Discussion on \"Redis GETEX: How to Implement Sliding TTL for Cache Entries\". While working with Redis caching, I recently came across a Redis command that I hadn't used before: GETEX.\nAt first glance, it looks similar to the usual GET command. But there is one important differ"
url: "https://hashnode.com/posts/redis-getex-sliding-ttl/6abaa475a8aa6dfee4471866"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Redis GETEX: How to Implement Sliding TTL for Cache Entries](https://aishwaryas.hashnode.dev/redis-getex-sliding-ttl?utm_source=hashnode&utm_medium=feed)

While working with Redis caching, I recently came across a Redis command that I hadn't used before: GETEX. At first glance, it looks similar to the usual GET command. But there is one important differ

Sep 28 · 4 min read · aishwaryas.hashnode.dev  
Updated Oct 1  
Read the article

-   [#redis](https://hashnode.com/tag/redis)
-   [#redis-cache](https://hashnode.com/tag/redis-cache)
-   [#getex](https://hashnode.com/tag/getex)

## Written by

[Aishwarya S](https://hashnode.com/@aishwarya1712)

@aishwarya1712

  
[View profile](https://hashnode.com/@aishwarya1712)

Associate Software Developer || Enthusiastic learner

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
