Coder Social home page Coder Social logo

Comments (4)

itamarhaber avatar itamarhaber commented on August 30, 2024

Hello @mlissner - thanks for bringing this up.

I couldn't find where the getset documentation code is

https://github.com/redis/redis-doc/blob/master/commands/getset.md

I know getset is now deprecated

Indeed, it is deprecated in favor of the all-in-one evolved SET command. That said, "deprecated" means very little here because I don't see us removing it from the project in the foreseeable future :)

so apparently this is something that has come up before

If you read the docs about SET, you'll find that it resets TTL (and doesn't care about the TYPE of the key if it exists). The KEEPTTL option was added recently to modify this behavior. Because GETSET also does a SET, it is implied that it also resets the TTL.

Would it be a good idea to put a note about this

Sure. Please make the PR that clarifies this and close this issue.

from redis-io.

mlissner avatar mlissner commented on August 30, 2024

Just created redis/redis-doc#1570 by copying from the SET documentation. Thanks for the guidance.

from redis-io.

mlissner avatar mlissner commented on August 30, 2024

Looks like this small change to the docs got dropped. Any chance we can merge it?

from redis-io.

zuiderkwast avatar zuiderkwast commented on August 30, 2024

Merged. Thanks @mlissner! This issue can be closed.

from redis-io.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.