How to Use the Redis WATCH Command

Introduction If you’re using Redis to manage your data, it’s important to understand how to use transactions with this key-value data store. Transactions in Redis bear little resemblance to transactions in a typical relational database management system (RDBMS). Fortunately, Redis has several useful commands to help you manage transactions effectively. In this article, we’ll discuss … Continued

How to List Redis Keys

Introduction Redis is a data structure server that supports various values, however, it is not a simple key-value store. String keys are typically associated to string values in traditional key-value stores. However, the value is not limited to a simple string in Redis, but is able to hold more complex data structures. This tutorial will … Continued

How to Use Redis HKEYS

Introduction If you’re just getting started with Redis, you may not yet have spent much time working with hashes. However, you’ll soon find that these structures can be incredibly useful for grouping related data. In this article, we’ll discuss the Redis HKEYS command– a handy tool that allows you to query for all keys of … Continued

Redis Use Case Examples

Introduction If you’re just getting started with Redis, there are a few important things you need to know. You probably already understand what Redis is: a lightning-fast, in-memory, key-value data store. You likely know that it’s open source and can be used as a cache, database and message broker. However, these facts don’t necessarily explain … Continued

Redis vs Memcached

Introduction Redis and Memcached are two similar data-storage systems. Redis is an open source in-memory key value store, whereas Memcached is a high-performance distributed-memory system. Both systems hold most data in memory and support various operations. Here is a head-to-head comparison of Redis vs Memcached: Memcached Memcached is a simple cache server that allows for … Continued

How to Use PostgreSQL PDO Driver with PHP Part 1

Introduction This tutorial will explain how to connect PHP to PostgreSQL with the PDO driver and create the PHP project structure with Composer, a dependency-management tool in PHP. Compose allows for verifying the libraries a project requires and it will install and update the libraries as needed. Be sure all the prerequisites are properly in … Continued

How to Use Redis Go Client go-redis/redis with GoLang

Introduction Go-Redis is one of the most popular clusters for Redis, consistently receiving high marks and positive reviews from users. Go-Redis is a Redis client able to support a Redis cluster and is a Go language execution of the Redis client based on Redigo. Go-Redis is designed to store and update slot info automatically with … Continued

How to Use Redis Go Client Redigo with GoLang

Introduction The Go language (GoLang) helps developers increase productivity because it’s an easy-to-learn programming language that’s suitable for many applications in a variety of industries. GoLang is compatible with other popular programs too. One worth mentioning is Redigo, a Redis Go client. It works seamlessly with GoLang. Among its main benefits is its ability to … Continued

How to Use Redis Datatypes in PHP Part 2

Introduction This is part two in the tutorial series “How to use Redis Datatypes with PHP.” Part one of this series covered how to use GET, SET and EXISTS and examined how to use PHP to interacts with Redis elements. Part two will focus on how to use the hash commands for Redis. Hashes are … Continued

How to Use Redis Datatypes in PHP Part 1

Introduction When it comes to storing and manipulating complex data structures in memory, Redis is the natural choice. This in-memory data structure server, or key-value store, allows you to work with structures such as maps, lists, sets and much more. In this article, we’ll look at some of these datatypes and talk about how to … Continued

Keep in the know!

Subscribe to our emails and we’ll let you know what’s going on at ObjectRocket. We hate spam and make it easy to unsubscribe.