Skip to content

Commit

Permalink
@wjw_change: 修改README,添加对redis里数据结构的解释
Browse files Browse the repository at this point in the history
  • Loading branch information
wjw465150 committed Jan 31, 2012
1 parent 38c439d commit 5ef09bd
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .settings/org.eclipse.core.resources.prefs
@@ -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
16 changes: 15 additions & 1 deletion README
@@ -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����

0 comments on commit 5ef09bd

Please sign in to comment.