Redis in Action by Josiah L. Carlson

By Josiah L. Carlson

In a nutshell
This ebook covers using Redis, an in-memory database/data constitution server, initially written via Salvatore Sanfilippo, yet lately patched in the course of the open resource approach. although you don’t unavoidably want to know whatever approximately Redis, to get the main out of this publication you'll have no less than a modest familiarity with the Python programming language, due to the fact just about all of the examples use Python to engage with Redis.

Summary

Redis in Action introduces Redis and walks you thru examples that exhibit the way to use it successfully. You'll start by way of getting Redis organize accurately after which exploring the key-value version. Then, you'll dive into actual use circumstances together with basic caching, dispensed advert focusing on, and extra. You'll how one can scale Redis from small jobs to large datasets. skilled builders will get pleasure from chapters on clustering and inner scripting to make Redis more uncomplicated to use.

About the Technology

When you wish near-real-time entry to a fast-moving information move, key-value shops like Redis are the best way to cross. Redis expands at the key-value trend via accepting a large choice of information varieties, together with hashes, strings, lists, and different buildings. It presents lightning-fast operations on in-memory datasets, and likewise makes it effortless to persist to disk at the fly. Plus, it's unfastened and open source.

About this book

Redis in Action introduces Redis and the key-value version. You'll fast dive into actual use instances together with basic caching, allotted advert concentrating on, and extra. You'll the way to scale Redis from small jobs to large datasets and observe find out how to combine with conventional RDBMS or different NoSQL shops. skilled builders will savor the in-depth chapters on clustering and inner scripting.

Written for builders acquainted with database thoughts. No previous publicity to NoSQL database recommendations nor to Redis itself is needed. acceptable for structures directors pleased with programming.

What's Inside
• Redis from the floor up
• Preprocessing real-time data
• coping with in-memory datasets
• Pub/sub and configuration
• Persisting to disk

About the Author

Dr. Josiah L. Carlson is a pro database expert and an lively contributor to the Redis group.

Show description

Read Online or Download Redis in Action PDF

Similar python books

Fundamentals of Python: From First Programs through Data Structures

In basics OF PYTHON: FROM FIRST courses via information constructions, Washington and Lee collage professor Kenneth A. Lambert provides all the very important subject matters in CS1 and CS2 in a single quantity. This most economical structure presents teachers with a constant method of educating introductory programming and knowledge constructions over a typical two-term path series.

Python for Data Analysis: Data Wrangling with Pandas, NumPy, and IPython

Python for information research is worried with the nuts and bolts of manipulating, processing, cleansing, and crunching information in Python. it's also a pragmatic, glossy advent to clinical computing in Python, adapted for data-intensive functions. it is a booklet concerning the components of the Python language and libraries you'll have to successfully resolve a large set of knowledge research difficulties.

Python and AWS

For those who intend to take advantage of Amazon internet prone (AWS) for distant computing and garage, Python is a perfect programming language for constructing functions and controlling your cloud-based infrastructure. This cookbook will get you begun with greater than dozen recipes for utilizing Python with AWS, in line with the author’s boto library.

Artificial Intelligence with Python

Construct real-world synthetic Intelligence functions with Python to intelligently engage with the realm round you approximately This booklet Step into the fantastic global of clever apps utilizing this complete advisor input the area of synthetic Intelligence, discover it, and create your personal purposes paintings via basic but insightful examples that may get you up and working with man made Intelligence very quickly Who This publication Is For This publication is for Python builders who are looking to construct real-world man made Intelligence purposes.

Additional resources for Redis in Action

Example text

We’ll use Unix time because it can be fetched easily in most programming languages and on every platform that we may use Redis on. For our constant, we’ll take the article:92617 hash number of seconds in a day (86,400) divided by the number of votes required (200) to last a full title Go to statement day, which gives us 432 “points” added to the considered harmful score per vote. gl/kZUSu To actually build this, we need to start thinkposter user:83271 ing of structures to use in Redis. 33 need to store article information like the title, 528 votes the link to the article, who posted it, the time it was posted, and the number of votes received.

First try searching with your favorite search engine for the particular error message you’re seeing. forumID=809. Either I or someone else who’s familiar with the book should be able to help. com/d/forum/redis-db/. Again, either I or someone who’s familiar with Redis should be able to help. And finally, if you’re having difficulties with a particular language or library, you can also try the Redis mailing list, but you may have better luck searching the mailing list or forum for the library you’re using.

1:6379> 1) "member0" 2) "982" zadd zset-key 728 member1 When we add items to a ZSET, the command returns the number of new items. zadd zset-key 982 member0 zadd zset-key 982 member0 zrange zset-key 0 -1 withscores We can fetch all of the items in the ZSET, which are ordered by the scores, and scores are turned into floats in Python. zrangebyscore zset-key 0 800 withscores We can also fetch a subsequence of items based on their scores. zrem zset-key member1 zrem zset-key member1 When we remove items, we again find the number of items that were removed.

Download PDF sample

Rated 4.44 of 5 – based on 39 votes