GithubHelp home page GithubHelp logo

mini_cache's Introduction

mini_cache

这是一个高速缓存服务器, 基于 linux, epoll, tcp, hashmap and mutil thread

author

usage

make server
./server

客户端

telnet 127.0.0.1 12345

登录

// 首先必须要登录
// 其次这个账号和密码暂时是固定的,写在代码里面的
login admin admin@minicache@123

键值对

set

set a1 xxx

get

get a1

del

// 可删除所有类型的数据,(键值对,列表,哈希表)
del a1

list 列表操作

lpush

// 往列表里面添加数据
lpush a1 xxx

llen

// 查看列表的长度
llen a1

lrange

// 在列表里面取个范围
lrange a1 0 10

list

// 展示列表里面所有数据
list a1

ldel

// 删除列表中指定的数据
ldel a1 1

hashmap 哈希表

hmset

hmset key1 child_key xxxx

hmget

hmget key1 child_key

hmdel

hmdel key1 child_key

订阅模式

订阅

subsribe que1

发布

publish que1 xxxx

php extension

based on php7

https://github.com/johnnylei/php_mini_cache.git

fixed 20180420

  • add hashtable resize
  • remove child process worker(because cannot share memory in mutil processes)

next to do

  • 权限控制
  • log
  • 持久化

mini_cache's People

Contributors

johnnylei avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

lenglingx

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.