Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zuston/redis-php-chattingroom
this is the simple demo which is based on the extension of the phpredis and the nosql db of redis
https://github.com/zuston/redis-php-chattingroom
Last synced: 7 days ago
JSON representation
this is the simple demo which is based on the extension of the phpredis and the nosql db of redis
- Host: GitHub
- URL: https://github.com/zuston/redis-php-chattingroom
- Owner: zuston
- Created: 2015-04-26T07:25:29.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-04-27T11:59:25.000Z (over 9 years ago)
- Last Synced: 2024-10-17T05:55:54.418Z (2 months ago)
- Language: PHP
- Homepage:
- Size: 1020 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Redis-php-chattingRoom
**this is the simple demo which is based on the extension of phpredis and the nosql db of redis**
## Introduction
1. this demo depend on the phpredis and redis.you will have to be used
2. the redis's structure is following
* hashmap(store the login username and password)
- key:login
- member:user1 or user2 or usern
- value:password
* sorted sets(create n keys when we have n users)
- key:user2-content(or user1-content)
- score:timestamp(the content createtime)
- value:content
* string(create n keys when we have n users)
- key:user2-timestamp
- value:timestamp(the user last content's timestamp)
> the string timestamp is the best key;