Skip to main content

The CacheService service lets you perform getAll, clear and clearAll operations on your scope's caches.

  • getAll allows you to retrieve all caches in the scope.

  • clearAll purges all your scope's caches.

  • clear allows you to purge a list of caches defined by their name.

Cache retrieval

The following examples show how to retrieve the list of all FlowerDocs scope caches.


GET ALL:

# <CORE_HOST>  FlowerDocs Core base URL
# <TOKEN> authentication token

curl -X GET "<CORE_HOST>/rest/caches" \
-H "token: <TOKEN>"

Cache purge

The examples below show how to purge FlowerDocs scope caches using the various operations of clear.


CLEAR ALL:

# <CORE_HOST>  FlowerDocs Core base URL
# <TOKEN> authentication token

curl -X DELETE "<CORE_HOST>/rest/caches" \
-H "token: <TOKEN>"

CLEAR:

# <CORE_HOST>  FlowerDocs Core base URL
# <TOKEN> authentication token
# <NAMES> name of caches to be purged

curl -X DELETE "<CORE_HOST>/rest/caches/<NAMES>" \
-H "token: <TOKEN>"