Comments (4)
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.
Just created redis/redis-doc#1570 by copying from the SET documentation. Thanks for the guidance.
from redis-io.
Looks like this small change to the docs got dropped. Any chance we can merge it?
from redis-io.
Merged. Thanks @mlissner! This issue can be closed.
from redis-io.
Related Issues (20)
- Redis News / Buzz not updating HOT 2
- No easy way to checksum https://download.redis.io/ HOT 4
- "Illegal" URLs return a full stack trace HOT 2
- Integrate scripts/generate_interactive_commands.rb into auto-deployment
- Client side caching concept page has a minor bug HOT 2
- ZMSCORE command is not supported HOT 3
- Suggestion: add Windows option to /download HOT 4
- STRALGO LCS sytanx spec not accurate
- Move IRC channel off Freenode HOT 4
- Bug when specifing "multiple" to a complex command HOT 6
- 504 at http://autocomplete.redis.io/ HOT 3
- Examples not works HOT 1
- Restore STRALGO command reference, indicated support dropped in Redis 7
- ipv6 not supported
- ZMPOP Documentation Example is Faulty
- XREADGROUP reading backlog and new message Ruby code logic issue
- ZRANGESTORE interactive broken
- What is the license for this repository? HOT 1
- REDIS ON WINDOWS DBGHELP.DLL UNCONTROLLED SEARCH PATH
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from redis-io.