Skip to content

Latest commit

 

History

History
26 lines (20 loc) · 584 Bytes

README.md

File metadata and controls

26 lines (20 loc) · 584 Bytes

PHP ToyCache

Cache made for individual sessions to store key value pairs. Made to learn how to work with sockets with php and it's behaviour.

WARNING: This is an experiment don't use this on production environments.

How to use

php toycache.php

Commands:
SET KEY VALUE - Set a variable on server.
Key - Name of the remote variable.
Value - Value to store withoud spaces.

GET KEY - Get variable value on server.<br/ Key - Name of the remote variable.

Ex.:

nc localhost 9500
SET apiKey dHJ1c3RubzEK
GET apiKey
dHJ1c3RubzEK