CacheGet(String, Double) Method
Retrieve an object from the cache with the given name, restricting maximum call frequency to the range 2 to 1000 calls per second if required.
Namespace: ASCOM.UtilitiesAssembly: ASCOM.Cache (in ASCOM.Cache.dll) Version: 7.1.3+4851.c5da65c2b
public Object Get(
string Key,
double MaximumCallFrequency
)
Public Function Get (
Key As String,
MaximumCallFrequency As Double
) As Object
public:
virtual Object^ Get(
String^ Key,
double MaximumCallFrequency
) sealed
- Key String
- Name of this item in the cache. The key is case sensitive.
- MaximumCallFrequency Double
- Maximum number of retrievals per second that are to be allowed for this item. A value of 0.0 will disable throttling. See Dispose for further information.
ObjectThe requested object if present in the cache or a "NotInCacheException" if there is no item in the cache that has the supplied name.