FastCache

FastCache

Accelerate your application performance with our key-value database storage solution that resides on the edge for fast access to data.

Background

FastCache is our key-value database storage solution that resides on the edge for fast access to data. You can accelerate your application by storing data in FastCache and retrieving it with low latency and high throughput. Data is stored in centralized data centers and replicated to edge locations for fast access. FastCache is a fully managed service that is highly available and scalable with incredibly low latency. You can use FastCache to store and retrieve data from any application, including mobile apps, websites, and web services.

Data in FastCache is stored on Application-level to make integration as frictionless as possible. If you wish to separate your data, you can create another Gigadrive Network Application and use a different API Key.


GET/fastcache?key=:key

Retrieve an item

Required API Key permission: fastcache:read

This endpoint retrieves an item from the cache.

Request

GET
/fastcache?key=user_1248560
curl https://api.gigadrive.network/fastcache?key=user_1248560
    -H "Authorization: Bearer {token}"

Response (HTTP 200)

{
    "key": "user_1248560",
    "value": "Zeryther",
    "expiration": 2147483647,
    "byteSize": 98
}

POST/fastcache

Create an item

Required API Key permission: fastcache:write

This endpoint creates an item in the cache.

Request

POST
/fastcache
curl -X POST https://api.gigadrive.network/fastcache
    -H "Authorization: Bearer {token}"
    -H "Content-Type: application/json"
    -d '{"key": "user_1248560", "value": "Zeryther", "expiration": 2147483647}'

Response (HTTP 201)

{
    "key": "user_1248560",
    "value": "Zeryther",
    "expiration": 2147483647,
    "byteSize": 98
}

DELETE/fastcache?key=:key

Delete an item

Required API Key permission: fastcache:delete

This endpoint deletes an item from the cache.

Request

DELETE
/fastcache?key=user_1248560
curl -X DELETE https://api.gigadrive.network/fastcache?key=user_1248560
    -H "Authorization: Bearer {token}"

Response (HTTP 204)

(empty)