Update of /cvsroot/springnet/Spring.Net/src/Spring/Spring.Web/Caching
In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv14644
Modified Files:
AspNetCache.cs
Log Message:
added test for AbstractCache and AspNetCache
Index: AspNetCache.cs
===================================================================
RCS file: /cvsroot/springnet/Spring.Net/src/Spring/Spring.Web/Caching/AspNetCache.cs,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** AspNetCache.cs 24 Aug 2007 22:44:16 -0000 1.4
--- AspNetCache.cs 25 Aug 2007 10:21:38 -0000 1.5
***************
*** 28,38 ****
{
/// <summary>
! /// An <see cref="ICache"/> implementation backed by ASP.NET Cache.
/// </summary>
/// <remarks>
/// Because ASP.NET Cache uses strings as cache keys, you need to ensure
/// that the key object type has properly implemented <b>ToString</b> method.
/// </remarks>
/// <author>Aleksandar Seovic</author>
/// <version>$Id$</version>
public class AspNetCache : AbstractCache
--- 28,45 ----
{
/// <summary>
! /// An <see cref="ICache"/> implementation backed by ASP.NET Cache (see <see cref="HttpRuntime.Cache"/>).
/// </summary>
/// <remarks>
+ /// <para>
/// Because ASP.NET Cache uses strings as cache keys, you need to ensure
/// that the key object type has properly implemented <b>ToString</b> method.
+ /// </para>
+ /// <para>
+ /// Despite the shared underlying <see cref="HttpRuntime.Cache"/>, it is possible to use more than
+ /// one instance of <see cref="AspNetCache"/> without interfering each other.
+ /// </para>
/// </remarks>
/// <author>Aleksandar Seovic</author>
+ /// <author>Erich Eichinger</author>
/// <version>$Id$</version>
public class AspNetCache : AbstractCache
***************
*** 292,296 ****
public string GenerateKey( object key )
{
! return _cacheName + key.ToString();
}
}
--- 299,303 ----
public string GenerateKey( object key )
{
! return _cacheName + key;
}
}
|