sealed class
|
PyramidFileCacheOptions
|
implements
|
IConfigurable
|
||
IEquatable<PyramidFileCacheOptions>
|
The configurator object for this type.
public
static
property
|
Config
{
get
}
|
||
type
|
IConfigurator<PyramidFileCacheOptions>
|
||
value
|
|
The configurator object. |
The maximum size of the pyramid file cache.
public
property
|
SizeMegabytes
{
get
set
}
|
||
type
|
int32
|
||
value
|
|
The
maximum
file
size,
in
megabytes.
Set
to
0
to
disable
this
limit.
|
The maximum size of the pyramid file cache.
public
property
|
SizePercent
{
get
set
}
|
||
type
|
int32
|
||
value
|
|
The
maximum
size,
given
as
a
percentage
of
available
storage
space
in
the
directory
that
holds
the
pyramid
cache
file
(see
DirectoryFreeSpace).
Set
to
0
to
disable
this
limit.
|
The maximum age of tiles in the pyramid file cache.
public
property
|
TileAge
{
get
set
}
|
||
type
|
int32
|
||
value
|
|
The
maximum
tile
age,
in
seconds.
Set
to
0
to
disable
this
limit.
|
Remarks:
Defaults
to
0
.
Creates a new instance of PyramidFileCacheOptions.
public
constructor
|
PyramidFileCacheOptions
(int32 sizeMegabytes = 1024,
int32 sizePercent = 25,
int32 tileAge = 0)
|
||
params
|
sizeMegabytes
|
[>=0]
|
Initial
value
for
SizeMegabytes.
Defaults
to
1024 .
|
sizePercent
|
[0..100]
|
Initial
value
for
SizePercent.
Defaults
to
25 .
|
|
tileAge
|
[>=0]
|
Initial
value
for
TileAge.
Defaults
to
0 .
|
Compares this object with the given one.
[Pure]
|
||||
public
method
|
Equals
(PyramidFileCacheOptions other)
|
|||
type
|
bool
|
|||
params
|
other
|
The object to compare to. | ||
returns
|
true
if
this
object
is
equal
to
other,
false
if
not.
|
|||
implements
|
IEquatable.Equals
|
Returns the configuration value that describes this object.
public
method
|
ToConfig
()
|
||
type
|
ConfigValue
|
||
returns
|
|
The configuration value. | |
implements
|
IConfigurable.ToConfig
|
Remarks:
All configurable objects need to implement this interface. For simple types, it is preferable to delegate to ToValue.
The returned value may be of type Invalid, which means that this object in its current state cannot be described with the configuration API.
Before returning the resulting configuration value, Cache must be called on it, passing this IConfigurable object as parameter.