ObjectCache::Item Property (String^)
.NET Framework (current version)
Gets or sets the default indexer for the ObjectCache class.
Assembly: System.Runtime.Caching (in System.Runtime.Caching.dll)
public: property Object^ default[ String^ key ] { virtual Object^ get(String^ key) abstract; virtual void set(String^ key, Object^ value) abstract; }
Parameters
- key
-
Type:
System::String^
A unique identifier for a cache entry in the cache.
The behavior of the set accessor of this property is like the Set(String^, Object^, DateTimeOffset, String^) method. Internally, a cache implementation could set the absolute expiration of the specified value to the InfiniteAbsoluteExpiration method. However this behavior is ultimately up to the cache implementation.
The behavior of get accessor is like calling the Get(String^) method and using null for the region name.
.NET Framework
Available since 4.0
Available since 4.0
Show: