diff options
author | Ingela Anderton Andin <[email protected]> | 2015-12-07 10:36:15 +0100 |
---|---|---|
committer | Ingela Anderton Andin <[email protected]> | 2015-12-07 10:36:15 +0100 |
commit | 9ffec8e28809e74d44ed715ad3191c45da019c24 (patch) | |
tree | ed3424f31eba912aa4f30e8ed5b748713e70964d /lib/ssl/src/ssl_session_cache.erl | |
parent | c84f85cc31ae8f13e8a44b866b90ad51f1c676c3 (diff) | |
parent | f258633921e7dd0bd5760281d2a26a0f937e53c4 (diff) | |
download | otp-9ffec8e28809e74d44ed715ad3191c45da019c24.tar.gz otp-9ffec8e28809e74d44ed715ad3191c45da019c24.tar.bz2 otp-9ffec8e28809e74d44ed715ad3191c45da019c24.zip |
Merge branch 'maint'
Diffstat (limited to 'lib/ssl/src/ssl_session_cache.erl')
-rw-r--r-- | lib/ssl/src/ssl_session_cache.erl | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/ssl/src/ssl_session_cache.erl b/lib/ssl/src/ssl_session_cache.erl index cfc48cd935..9585e613e6 100644 --- a/lib/ssl/src/ssl_session_cache.erl +++ b/lib/ssl/src/ssl_session_cache.erl @@ -27,7 +27,7 @@ -include("ssl_internal.hrl"). -export([init/1, terminate/1, lookup/2, update/3, delete/2, foldl/3, - select_session/2]). + select_session/2, size/1]). %%-------------------------------------------------------------------- %% Description: Return table reference. Called by ssl_manager process. @@ -86,6 +86,12 @@ select_session(Cache, PartialKey) -> [{{{PartialKey,'_'}, '$1'},[],['$1']}]). %%-------------------------------------------------------------------- +%% Description: Returns the cache size +%%-------------------------------------------------------------------- +size(Cache) -> + ets:info(Cache, size). + +%%-------------------------------------------------------------------- %%% Internal functions %%-------------------------------------------------------------------- cache_name(Name) -> |