CKFinder 3 – ASP.NET Connector Documentation
IImageMetadataCache Interface Reference

A cache with image metadata. More...

Inherits IDisposable.

Public Member Functions

Task RemoveAsync (CancellationToken cancellationToken)
 Asynchronously removes cache data. More...
 
Task< Size?> GetSizeAsync (CancellationToken cancellationToken)
 Asynchronously gets the image dimensions. More...
 
Task SetSizeAsync (Size size, CancellationToken cancellationToken)
 Asynchronously sets the cached value of image dimensions. More...
 
Task< ulong?> GetHashAsync (CancellationToken cancellationToken)
 Asynchronously gets the image hash. More...
 
Task SetHashAsync (ulong hash, CancellationToken cancellationToken)
 Asynchronously sets the cached value of image hash. More...
 

Properties

IFile File [get]
 Get the image file for this cache. More...
 

Detailed Description

A cache with image metadata.

Member Function Documentation

◆ GetHashAsync()

Task<ulong?> GetHashAsync ( CancellationToken  cancellationToken)

Asynchronously gets the image hash.

May be null if hash is not yet in cache.

Parameters
cancellationTokenA cancellation token.
Returns
An image hash.

◆ GetSizeAsync()

Task<Size?> GetSizeAsync ( CancellationToken  cancellationToken)

Asynchronously gets the image dimensions.

May be null if size is not yet in cache.

Parameters
cancellationTokenA cancellation token.
Returns
An image dimensions.

◆ RemoveAsync()

Task RemoveAsync ( CancellationToken  cancellationToken)

Asynchronously removes cache data.

Parameters
cancellationTokenA cancellation token.

◆ SetHashAsync()

Task SetHashAsync ( ulong  hash,
CancellationToken  cancellationToken 
)

Asynchronously sets the cached value of image hash.

Parameters
hashAn image hash.
cancellationTokenA cancellation token.

◆ SetSizeAsync()

Task SetSizeAsync ( Size  size,
CancellationToken  cancellationToken 
)

Asynchronously sets the cached value of image dimensions.

Parameters
sizeAn image size.
cancellationTokenA cancellation token.

Property Documentation

◆ File

IFile File
get

Get the image file for this cache.


The documentation for this interface was generated from the following file: