website logo
⌘K
πŸ–οΈIntroduction to hyper cloud
🍎Getting Started
😍What's New
Blueberry Migration Guide
πŸ’ͺWorkshops
Deno Workshops
NodeJS Workshops
⚑Quickstarts
NodeJS Quickstarts
πŸ”ŒAPI Reference (hyper cloud)
🍎Basics
⚑hyper connect
πŸ”‘JWT Auth
πŸ’ΎData API
🏎️Cache API
πŸ”ŽSearch API
πŸ—„οΈStorage API
πŸ€“Queue API
πŸ”“Sign In
⚑Applications
βš™οΈSettings
πŸ”‘App Keys
πŸ‘₯Teams
Switching Between Accounts
Application Services
Application Service Instances
Adding a Queue Service
Adding a Search Service
Subscriptions
πŸ€‘Upgrade
πŸ“•Terminology
Parameters
πŸ’³Billing
Payment and Pricing Terms
πŸ’ΌLegal
Terms of Service
Acceptable Use Policy
Privacy Policy
πŸ•ΆοΈHyper Vision
Docs powered byΒ archbeeΒ 
16min

Update Value by Key

PUT /{appname}/cache/{servicename}/{key}

This command updates a document in the cache store. By updating the document you can modify the values of the document, as well as modify/extend the time to live or ttl.

If you want to change the key, create a new key/value pair and delete this key/value pair.

Parameters

Path Parameters

  • appname - string
  • servicename - string
  • key - string
    • value requirements
      • must begin with a lowercase letter (a-z)
      • must be lowercase letters (a-z)
      • digits (0-9)
      • any of these characters _ $ + -

Query string parameters

  • ttl - string
    • _s - for seconds, eg 20s = 20 seconds

Request Payload Limit

When creating or updating the cache, the document size limit isΒ 10MB.

Examples

Don't forget!

Be sure to set your HYPER environment variable with the value of your hyper app's connection string.

Node.js
Curl
|

Responses

Status Code

Description

Example Response

201

Success

{"ok": true}

404

Key Not Found

{ "ok": false, msg: "key not found" }

500

Error

{"ok": false, "msg": "..."}

Need Help?

You can always reach out to our support team for any additional assistance on slack.

Updated 24 Mar 2022
Did this page help you?
Yes
No
UP NEXT
Delete Key/Value Pair
Docs powered byΒ archbeeΒ 
TABLE OF CONTENTS
PUT /{appname}/cache/{servicename}/{key}
Parameters
Path Parameters
Query string parameters
Request Payload Limit
Examples
Don't forget!
Responses
Need Help?