Skip to content

kx0101/redis-from-scratch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Redis from scratch using the Redis Protocol Parser

Run tests under scripts directory

➜ make test
======================================
Test: PING
======================================
✅ Test passed

======================================
Test: ECHO hello
======================================
✅ Test passed

======================================
Test: SET foo bar
======================================
✅ Test passed

======================================
Test: GET foo
======================================
✅ Test passed

======================================
Test: SET exp value PX 500 (in ms)
======================================
✅ Test passed

======================================
Test: GET exp (immediate)
======================================
✅ Test passed

======================================
Test: GET exp (after 500ms, should expire)
======================================
✅ Test passed

======================================
Test: SET foo bar
======================================
✅ Test passed

======================================
Test: DEL foo
======================================
✅ Test passed

======================================
Test: SET foo bar
======================================
✅ Test passed

======================================
Test: SET bar baz
======================================
✅ Test passed

======================================
Test: DEL foo bar
======================================
✅ Test passed

======================================
Test: SET foo bar
======================================
✅ Test passed

======================================
Test: EXISTS foo
======================================
✅ Test passed

======================================
Test: SET bar baz
======================================
✅ Test passed

======================================
Test: EXISTS foo bar
======================================
✅ Test passed

======================================
Test: SET foo bar
======================================
✅ Test passed

======================================
Test: SET exp value PX 100 (in ms)
======================================
✅ Test passed

======================================
Test: EXISTS foo exp
======================================
✅ Test passed

======================================
Test: SET foo bar
======================================
✅ Test passed

======================================
Test: TTL foo
======================================
✅ Test passed

======================================
Test: EXPIRE foo 2 (in seconds)
======================================
✅ Test passed

======================================
Test: TTL foo
======================================
✅ Test passed

======================================
Test: GET foo
======================================
✅ Test passed

======================================
Test: EXISTS foo
======================================
✅ Test passed

======================================
Test: TTL foo
======================================
✅ Test passed

======================================
Tests completed: 26 passed, 0 failed
======================================

About

a very simple Redis from scratch using the Redis Protocol Parser

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published