src/DotNetCommon.Core/Cache/IMemoryCache.cs
(完整代码) 1KB//using System;
//using System.Collections.Generic;
//using System.Text;
//
//namespace DotNetCommon.Cache
//{
// /// <summary>
// /// Represents a local in-memory cache whose values are not serialized.
// /// </summary>
// internal interface IMemoryCache : IDisposable
// {
// /// <summary>
// /// Gets the item associated with this key if present.
// /// </summary>
// /// <param name="key">An object identifying the requested entry.</param>
// /// <param name="value">The located value or null.</param>
// /// <returns>True if the key was found.</returns>
// bool TryGetValue(object key, out object value);
//
// /// <summary>
// /// Create or overwrite an entry in the cache.
// /// </summary>
// /// <param name="key">An object identifying the entry.</param>
// /// <returns>The newly created <see cref="ICacheEntry"/> instance.</returns>
// ICacheEntry CreateEntry(object key);
//
// /// <summary>
// /// Removes the object associated with the given key.
// /// </summary>
// /// <param name="key">An object identifying the entry.</param>
// void Remove(object key);
// }
//}
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
