mirror of
https://github.com/processone/ejabberd
synced 2025-10-03 01:39:35 +02:00
Use proper source for cache options in mod_shared_roster
This commit is contained in:
parent
c8afb5ceb6
commit
54916caf65
1 changed files with 3 additions and 3 deletions
|
@ -166,9 +166,9 @@ init_cache(Mod, Host, Opts) ->
|
||||||
|
|
||||||
-spec cache_opts(gen_mod:opts()) -> [proplists:property()].
|
-spec cache_opts(gen_mod:opts()) -> [proplists:property()].
|
||||||
cache_opts(Opts) ->
|
cache_opts(Opts) ->
|
||||||
MaxSize = mod_private_opt:cache_size(Opts),
|
MaxSize = mod_shared_roster_opt:cache_size(Opts),
|
||||||
CacheMissed = mod_private_opt:cache_missed(Opts),
|
CacheMissed = mod_shared_roster_opt:cache_missed(Opts),
|
||||||
LifeTime = mod_private_opt:cache_life_time(Opts),
|
LifeTime = mod_shared_roster_opt:cache_life_time(Opts),
|
||||||
[{max_size, MaxSize}, {cache_missed, CacheMissed}, {life_time, LifeTime}].
|
[{max_size, MaxSize}, {cache_missed, CacheMissed}, {life_time, LifeTime}].
|
||||||
|
|
||||||
-spec use_cache(module(), binary()) -> boolean().
|
-spec use_cache(module(), binary()) -> boolean().
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue