aboutsummaryrefslogtreecommitdiff
path: root/include/ejabberd_sm.hrl
diff options
context:
space:
mode:
authorEvgeniy Khramtsov <ekhramtsov@process-one.net>2017-04-14 13:57:52 +0300
committerEvgeniy Khramtsov <ekhramtsov@process-one.net>2017-04-14 13:57:52 +0300
commite40baf0bdaecf3206420fe8c16c33f2c166cb717 (patch)
tree75d9fe880e8257ea9fd20c095c252d7940cea89d /include/ejabberd_sm.hrl
parentBump xmpp dependency, it's required by previous commit (diff)
Use cache in front of Redis/SQL RAM backends
Diffstat (limited to '')
-rw-r--r--include/ejabberd_sm.hrl2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/ejabberd_sm.hrl b/include/ejabberd_sm.hrl
index 71cfc9ee9..377c98a4d 100644
--- a/include/ejabberd_sm.hrl
+++ b/include/ejabberd_sm.hrl
@@ -21,6 +21,8 @@
-ifndef(EJABBERD_SM_HRL).
-define(EJABBERD_SM_HRL, true).
+-define(SM_CACHE, sm_cache).
+
-record(session, {sid, usr, us, priority, info = []}).
-record(session_counter, {vhost, count}).
-type sid() :: {erlang:timestamp(), pid()}.