storage

Cache

Quick access key-value storage

Decrement Free

POSThttps://api.m3o.com/v1/cache/Decrement

Decrement a value (if it's a number)

Request payload

key string

The key to decrement

value number

The amount to decrement the value by

Response

key string

The key decremented

value number

The new value

Delete Free

POSThttps://api.m3o.com/v1/cache/Delete

Delete a value from the cache

Request payload

key string

The key to delete

Response

status string

Returns "ok" if successful

Get Free

POSThttps://api.m3o.com/v1/cache/Get

Get an item from the cache by key

Request payload

key string

The key to retrieve

Response

key string

The key

ttl number

Time to live in seconds

value string

The value

Increment Free

POSThttps://api.m3o.com/v1/cache/Increment

Increment a value (if it's a number)

Request payload

key string

The key to increment

value number

The amount to increment the value by

Response

key string

The key incremented

value number

The new value

Set Free

POSThttps://api.m3o.com/v1/cache/Set

Set an item in the cache. Overwrites any existing value already set.

Request payload

key string

The key to update

ttl number

Time to live in seconds

value string

The value to set

Response

status string

Returns "ok" if successful