aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIngela Andin <[email protected]>2017-02-22 15:24:41 +0100
committerGitHub <[email protected]>2017-02-22 15:24:41 +0100
commit438903aa74319891ff39b2e5b7451dcb47cc9ab1 (patch)
tree8f32e5ee4344b7386adf4fbe17751fff3ac9e5c0
parent5073a7b88aa3a8e2c84dcf6bf48adafe4e874422 (diff)
parentc4c28a0a5e0c0485769b3ed0c1230cda6e3f5b43 (diff)
downloadotp-438903aa74319891ff39b2e5b7451dcb47cc9ab1.tar.gz
otp-438903aa74319891ff39b2e5b7451dcb47cc9ab1.tar.bz2
otp-438903aa74319891ff39b2e5b7451dcb47cc9ab1.zip
Merge pull request #1351 from stevendanna/ssl_session_cache_api_size_docs
Document ssl_session_cache_api's size/1 callback
-rw-r--r--lib/ssl/doc/src/ssl_session_cache_api.xml29
1 files changed, 22 insertions, 7 deletions
diff --git a/lib/ssl/doc/src/ssl_session_cache_api.xml b/lib/ssl/doc/src/ssl_session_cache_api.xml
index b85d8fb284..1b41eae89d 100644
--- a/lib/ssl/doc/src/ssl_session_cache_api.xml
+++ b/lib/ssl/doc/src/ssl_session_cache_api.xml
@@ -11,7 +11,7 @@
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
-
+
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
@@ -62,8 +62,8 @@
</taglist>
</section>
-
- <funcs>
+
+ <funcs>
<func>
<name>delete(Cache, Key) -> _</name>
@@ -134,7 +134,7 @@
</p>
</desc>
</func>
-
+
<func>
<name>select_session(Cache, PartialKey) -> [session()]</name>
<fsummary>Selects sessions that can be reused.</fsummary>
@@ -151,6 +151,21 @@
</func>
<func>
+ <name>size(Cache) -> integer()</name>
+ <fsummary>Returns the number of sessions in the cache.</fsummary>
+ <type>
+ <v>Cache = cache_ref()</v>
+ </type>
+ <desc>
+ <p>Returns the number of sessions in the cache. If size
+ exceeds the maximum number of sessions, the current cache
+ entries will be invalidated regardless of their remaining
+ lifetime. Is to be callable from any process.
+ </p>
+ </desc>
+ </func>
+
+ <func>
<name>terminate(Cache) -> _</name>
<fsummary>Called by the process that handles the cache when it
is about to terminate.</fsummary>
@@ -178,7 +193,7 @@
</p>
</desc>
</func>
-
- </funcs>
-
+
+ </funcs>
+
</erlref>