Skip to main content
Altcraft Docs LogoAltcraft Docs Logo
User guideDeveloper guideAdmin guide
Company siteHelp center
English
  • Русский
  • English
v72
  • v74
  • v73
  • v72
Login
  • Getting Started
  • Administrator documentation
  • Functional characteristics
  • Technology description
  • System requirements
  • Admin Panel
  • Platform installation
  • Platform configuration
  • Platform maintenance
  • Custom channels guide
    • Overview
    • Creating and configuring a channel
    • Entity field configuration
    • Template language
    • Entities
    • Pipes
      • Pipe: Basic Concepts
      • Result
      • Errors
      • Log
      • Pack
      • Unpack
      • HTTP Request
      • Store Set
      • Store Get
      • Selector
      • SQL
      • Eventer
      • Scheduler
    • Pipelines
  • Extra
  • Processing HTTP/HTTPS traffic
  • Administrator API
This is documentation for Altcraft Platform v72. This documentation is no longer maintained.
The information for up-to-date platform version at this page is available (v74).
  • Custom channels guide
  • Pipes
  • Store Set
Documentation for version v72

Store Set

Description​

Store Set a pipe writes the value under the given key to mongodb.

Structure​

FieldType of valueExampleRequiredDescription
idnumber10yesPipe's ID
typestring"store_set"yesType of a pipe
paramsStoreSetParamsObject
noType-specific parameters
outsOutsObject
noPipe's outputs

StoreSetParamsObject
FieldTypeExampleReqieredDefaultDescription
key

string

"key_name"yes-Key name
value

any type

"qwerty"yes—Data that will be saved.
table

string

"some"no""

The name of the virtual collection into which the key-value pair will be written. From an implementation point of view, it’s just a tag. Therefore, it does not require any additional database configuration.

ttl

number

50yes-After what time the data will be deleted.

Errors​

  1. Error processing params.key, params.value, params.table or params.ttl - the template is invalid or the field was not found.

  2. Database query error.

Example​

  1. {
    "id": 37,
    "type": "store_set",
    "params": {
    "key": "session_id",
    "value": "$in.data.SessionInfo.%0.SessionToken",
    "ttl": 900
    },
    "outs": {
    "success": 12,
    "error": 13
    }
    }
Last updated on Jan 26, 2023
Previous
HTTP Request
Next
Store Get
  • Description
  • Structure
  • Errors
  • Example
© 2015 - 2025 Altcraft, LLC. All rights reserved.