Redis Command: GETDEL
Redis GETDEL command details, with examples in Golang, NodeJS, Java, C#, PHP, PYthon, Ruby. Get value and delete the key after that. It works similar to the GET command, just this deletes the key additionaly.
Redis GETDEL command details, with examples in Golang, NodeJS, Java, C#, PHP, PYthon, Ruby. Get value and delete the key after that. It works similar to the GET command, just this deletes the key additionaly.
Get the value of the key and additionally set the expiration time for the key. This command can work without the expiration time part, in that case, it will behave like the “GET” command.
Visitor pattern moves the calculation/operation to a separate class. This way, we can define a new operation without changing the related classes. This article demonstrates Visitor pattern implementations in PHP.
Template method pattern defines a template/skeleton for an operation processing steps. The subclasses define some steps of the template/skeleton, and some step definitions can be common for all. This makes it easier for the subclasses to adopt the processing steps defined in the template method pattern. This article demonstrates Template Method pattern implementations in PHP.
Get the string values of multiple keys. As we can pass multiple keys and get the values, so it is a very handy command when we work with lots of keys. This operation always returns values without any fail, as for the non-existing keys it returns nil.
Strategy pattern uses a group of similar algorithms and make those algorithms interchangeable. The client can use any of the algorithms at any given time and also can change the algorithm when needed. The algorithms used in strategy has the same interface implemented, but the internal working is different. This article demonstrates Strategy pattern implementations in PHP.
State pattern implements a system where an object is able to change its behavior based on state(one or more properties) of that object. The behavior can change completely or partially. This article demonstrates State pattern implementations in PHP.
Observer pattern implements a publish/subscribe mechanism between objects. Some subscribing objects want to observe the state change of a specific object, and the observer pattern enables the publishing object(subject) to notify other objects about changes. This article demonstrates Observer pattern implementations in PHP.
Set the string value of a key. The key is created if it does not exist already. If the key already exists, then no matter what the type of the existing data is, it will be overwritten. When a value is set(without any expiration time) for an existing key, then the existing TTL will be removed(if any TTL is already set).
Memento pattern keeps track of the internal state of an object, so that the program can track back and restore to any previous state of the object. This pattern enables us to implement the undo of any state change. This article demonstrates Memento pattern implementations in PHP.