Skip to content

angyvolin/redis-autocomplete-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

redis-autocomplete-demo

Redis autocomplete demo using ZRANGEBYLEX command. Autocomplete data was composed from 37000+ word definitions started from 'a', 'b' and 'c' letters taken from The Online Plain Text English Dictionary as autocompletion dictionary.

Based on antirez/search.php.

Get up and running

Installation

git clone https://github.com/angyvolin/redis-autocomplete-demo.git
composer install

Populate redis with autocomplete data

composer fixtures

Run php web server

composer run

Customize redis options:

REDIS_URL='redis://localhost:6379' composer run

or

REDIS_URL='redis://user:pass@localhost:6379' composer run