Mindscape LightSpeed - User Reference & API Documentation
Mindscape.LightSpeed.Caching Namespace
API ReferenceMindscape.LightSpeed.Caching
The Mindscape.LightSpeed.Caching namespace provides classes that are used to implement second-level caching.
Declaration Syntax
C#Visual Basic
namespace Mindscape.LightSpeed.Caching
Namespace Mindscape.LightSpeed.Caching
Types
All TypesClassesInterfaces
IconTypeDescription
CacheBroker
Brokers access to the second-level ICache implementation.

DefaultCache
The default LightSpeed second-level cache ICache implementation. Utilizes the .NET platform Cache

ICache
Contract for a second-level cache implementation.

MemcachedCache
A highly scalable, distributed second-level cache ICache implementation using memcached. Configuration of the memcached client should be performed using the underlying memcached client objects. Theses objects are exposed as properties of this class: MemcachedClient and SockIOPool. For example to set the list of memcached servers:
CopyC#
string[] servers = {"1.1.1.0:11211", "1.1.1.1:11211"};

memcachedCache.SockIOPool.SetServers(servers);
memcachedCache.SockIOPool.Initialize();
NB: As shown above, it is required to call the Initialize()()() method after configuration is complete.