Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
@wjw_change: 修改README,添加对redis里数据结构的解释
- Loading branch information
Showing
2 changed files
with
17 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
#Mon Oct 24 09:55:34 GMT+08:00 2011 | ||
#Tue Jan 31 11:40:45 GMT+08:00 2012 | ||
eclipse.preferences.version=1 | ||
encoding//web-app/ajax-1.html=UTF-8 | ||
encoding//web-app/ajax-2.html=UTF-8 | ||
encoding//web-app/ajax-3.html=UTF-8 | ||
encoding/<project>=UTF-8 | ||
encoding/README=GBK |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,15 @@ | ||
Pushlet��ͨ���Ľ�http://www.pushlets.com/һ����Դ��Comet ���,����֧�ֶ��ַ�����ͨ��redis��������ݿ�������Ⱥ.Pushlet ʹ���˹۲���ģ�ͣ��ͻ��˷��������ĸ���Ȥ���¼�����������Ϊÿ���ͻ��˷���һ���Ự ID ��Ϊ��ǣ��¼�Դ����²������¼��Զಥ�ķ�ʽ���͵������ߵ��¼������ | ||
Pushlet��ͨ���Ľ�http://www.pushlets.com/һ����Դ��Comet ���,����֧�ֶ��ַ�����ͨ��redis��������ݿ�������Ⱥ. | ||
Pushlet ʹ���˹۲���ģ�ͣ��ͻ��˷��������ĸ���Ȥ���¼�����������Ϊÿ���ͻ��˷���һ���Ự ID ��Ϊ��ǣ� | ||
�¼�Դ����²������¼��Զಥ�ķ�ʽ���͵������ߵ��¼������ | ||
|
||
Redis��֧������ģ��: | ||
ZSET: | ||
"p:zset:as" //������е�session;score��һ��ʱ���,value��sessionid | ||
"p:zset:sj:"+oneSubject //score��һ��ʱ���,value��sessionid;Ŀ�����ܴ�һ��oneSubject���ȡ�����е�session. | ||
HASH: | ||
"p:sr:"+sessionid //field��Subscriber�����������, value��Subscriber���������ֵ | ||
"p:sc:"+sessionid //field��Subscription�����Subject����, value��Subscription���� | ||
"p:sj:"+oneSubject //field��sessionid, value��Subscription�����Subject����;Ŀ�����ܿ���ƥ�䵽һ��Subscription���� | ||
"p:ss:"+sessionid //field��Session�����������, value��Session���������ֵ | ||
LIST: | ||
"p:eq:"+sessionid //���Event���� |