diff options
author | Evgeniy Khramtsov <ekhramtsov@process-one.net> | 2017-04-14 13:57:52 +0300 |
---|---|---|
committer | Evgeniy Khramtsov <ekhramtsov@process-one.net> | 2017-04-14 13:57:52 +0300 |
commit | e40baf0bdaecf3206420fe8c16c33f2c166cb717 (patch) | |
tree | 75d9fe880e8257ea9fd20c095c252d7940cea89d /include | |
parent | Bump xmpp dependency, it's required by previous commit (diff) |
Use cache in front of Redis/SQL RAM backends
Diffstat (limited to 'include')
-rw-r--r-- | include/bosh.hrl | 2 | ||||
-rw-r--r-- | include/ejabberd_router.hrl | 2 | ||||
-rw-r--r-- | include/ejabberd_sm.hrl | 2 | ||||
-rw-r--r-- | include/mod_carboncopy.hrl | 2 |
4 files changed, 8 insertions, 0 deletions
diff --git a/include/bosh.hrl b/include/bosh.hrl index 3f9095e5..d95784c0 100644 --- a/include/bosh.hrl +++ b/include/bosh.hrl @@ -47,3 +47,5 @@ -define(HEADER(CType), [CType, ?AC_ALLOW_ORIGIN, ?AC_ALLOW_HEADERS]). + +-define(BOSH_CACHE, bosh_cache). diff --git a/include/ejabberd_router.hrl b/include/ejabberd_router.hrl index f22bd723..04ea6e30 100644 --- a/include/ejabberd_router.hrl +++ b/include/ejabberd_router.hrl @@ -1,3 +1,5 @@ +-define(ROUTES_CACHE, routes_cache). + -type local_hint() :: integer() | {apply, atom(), atom()}. -record(route, {domain :: binary() | '_', diff --git a/include/ejabberd_sm.hrl b/include/ejabberd_sm.hrl index 71cfc9ee..377c98a4 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()}. diff --git a/include/mod_carboncopy.hrl b/include/mod_carboncopy.hrl index b58a5044..1da76ffb 100644 --- a/include/mod_carboncopy.hrl +++ b/include/mod_carboncopy.hrl @@ -22,3 +22,5 @@ -record(carboncopy, {us :: {binary(), binary()} | matchspec_atom(), resource :: binary() | matchspec_atom(), version :: binary() | matchspec_atom()}). + +-define(CARBONCOPY_CACHE, carboncopy_cache). |