Skip to content

Gabriellpweb/php-toycache

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Remote variable cache server.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages