ConnManager1

Undocumented in source.

Constructors

this
this(int limit)
Undocumented in source.

Destructor

~this
~this()
Undocumented in source.

Members

Aliases

CMKey
alias CMKey = Tuple!(string, string, ushort)
Undocumented in source.

Classes

CMValue
class CMValue
Undocumented in source.

Functions

clear
void clear()

clear cache (and close connections)

del
void del(string schema, string host, ushort port, NetworkStream str)

Remove connection from cache (without close).

get
NetworkStream get(string schema, string host, ushort port)

Lookup connection.

put
NetworkStream put(string schema, string host, ushort port, NetworkStream stream)

put new stream in cache, evict old stream and return it. If nothing evicted return null. Returned(evicted) connection can be closed.

Properties

length
auto length [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Meta