Skip to Content
Mastering PHP 7
book

Mastering PHP 7

by Branko Ajzele
June 2017
Intermediate to advanced
536 pages
9h 49m
English
Packt Publishing
Content preview from Mastering PHP 7

Setting up sample data

Running the redis-cli command on the Ubuntu terminal gets us into the Redis interactive shell. From here on, with a simple few commands, we can add the following sample data:

SET Key1 10SET Key2 20SET Key3 30SET Key4 40SET Key5 50

This should give us the following output:

Using the KEYS * command within the redis-cli shell, we are able to now list all the entries added by Redis:

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Learning PHP 7

Learning PHP 7

Antonio L Zapata (GBP)
Upgrading to PHP 5

Upgrading to PHP 5

Adam Trachtenberg

Publisher Resources

ISBN: 9781785882814Supplemental Content