Method GetCache
| Improve this Doc View SourceGetCache(Int32, Int32)
If there is an existing cache for the given basis then get it and increase its maximum size to meet the specified required max size, otherwise create a new cache with the given parameters.
Declaration
public static BigIntegerPowCache GetCache(int basis, int requiredMaxSize = 1024)
Parameters
Type | Name | Description |
---|---|---|
Int32 | basis | A value between 3 and 10 that specifies the basis of the exponent. |
Int32 | requiredMaxSize | The required maximum size of the cache. The maximum cached exponent is one less than this size. Caches never have a smaller max size than 1024. |
Returns
Type | Description |
---|---|
BigIntegerPowCache | A cache for the given basis that meets or exceeds the required max size. |