Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

ssl_session_cache_api(3erl) [linux man page]

ssl_session_cache_api(3erl)				     Erlang Module Definition				       ssl_session_cache_api(3erl)

NAME
ssl_session_cache_api - Defines the API for the TLS session cache so that the data storage scheme can be replaced by defining a new callback module implementing this API. COMMON DATA TYPES
The following data types are used in the functions below: cache_ref() = opaque() key() = {partialkey(), session_id()} partialkey() = opaque() session_id() = binary() session() = opaque() EXPORTS
delete(Cache, Key) -> _ Types Cache = cache_ref() Key = key() Deletes a cache entry. Will only be called from the cache handling process. foldl(Fun, Acc0, Cache) -> Acc Types Calls Fun(Elem, AccIn) on successive elements of the cache, starting with AccIn == Acc0. Fun/2 must return a new accumulator which is passed to the next call. The function returns the final value of the accumulator. Acc0 is returned if the cache is empty. init() -> opaque() Types Performs possible initializations of the cache and returns a reference to it that will be used as parameter to the other api func- tions. Will be called by the cache handling processes init function, hence putting the same requirements on it as a normal process init function. lookup(Cache, Key) -> Entry Types Cache = cache_ref() Key = key() Entry = session() | undefined Looks up a cache entry. Should be callable from any process. select_session(Cache, PartialKey) -> [session()] Types Cache = cache_ref() PartialKey = partialkey() Session = session() Selects sessions that could be reused. Should be callable from any process. terminate(Cache) -> _ Types Cache = term() - as returned by init/0 Takes care of possible cleanup that is needed when the cache handling process terminates. update(Cache, Key, Session) -> _ Types Cache = cache_ref() Key = key() Session = session() Caches a new session or updates a already cached one. Will only be called from the cache handling process. Ericsson AB ssl 4.1.4 ssl_session_cache_api(3erl)

Check Out this Related Man Page

Cache::CacheMetaData(3pm)				User Contributed Perl Documentation				 Cache::CacheMetaData(3pm)

NAME
Cache::CacheMetaData -- data about objects in the cache DESCRIPTION
The CacheMetaData object is used by size aware caches to keep track of the state of the cache and effeciently return information such as an objects size or an ordered list of indentifiers to be removed when a cache size is being limited. End users will not normally use CacheMetaData directly. SYNOPSIS
use Cache::CacheMetaData; my $cache_meta_data = new Cache::CacheMetaData( ); foreach my $key ( $cache->get_keys( ) ) { my $object = $cache->get_object( $key ) or next; $cache_meta_data->insert( $object ); } my $current_size = $cache_meta_data->get_cache_size( ); my @removal_list = $cache_meta_data->build_removal_list( ); METHODS
new( ) Construct a new Cache::CacheMetaData object insert( $object ) Inform the CacheMetaData about the object $object in the cache. remove( $key ) Inform the CacheMetaData that the object specified by $key is no longer in the cache. build_removal_list( ) Create a list of the keys in the cache, ordered as follows: 1) objects that expire now 2) objects expiring at a particular time, with ties broken by the time at which they were least recently accessed 3) objects that never expire, sub ordered by the time at which they were least recently accessed NOTE: This could be improved further by taking the size into account on accessed_at ties. However, this type of tie is unlikely in normal usage. build_object_size( $key ) Return the size of an object specified by $key. PROPERTIES
get_cache_size The total size of the objects in the cache SEE ALSO
Cache::Cache, Cache::CacheSizer, Cache::SizeAwareCache AUTHOR
Original author: DeWitt Clinton <dewitt@unto.net> Last author: $Author: dclinton $ Copyright (C) 2001-2003 DeWitt Clinton perl v5.12.4 2009-03-01 Cache::CacheMetaData(3pm)
Man Page