Skip to content

Storage

Persistent key-value storage.

3 modules

ModuleDescription
저장된 값 삭제영구 키-값 저장소에서 값을 삭제합니다
저장된 값 가져오기영구 키-값 저장소에서 값을 검색합니다
값 저장영구 키-값 저장소에 값을 저장합니다

Modules

저장된 값 삭제

storage.delete

영구 키-값 저장소에서 값을 삭제합니다

Parameters:

NameTypeRequiredDefaultDescription
namespacestringYesdefault저장소 네임스페이스
keystringYes-저장소 네임스페이스

Output:

FieldTypeDescription
okboolean삭제할 키
deletedboolean작업이 성공했는지 여부
keystring작업이 성공했는지 여부

Example: Delete cached value

yaml
namespace: cache
key: api_response

저장된 값 가져오기

storage.get

영구 키-값 저장소에서 값을 검색합니다

Parameters:

NameTypeRequiredDefaultDescription
namespacestringYesdefault저장소 네임스페이스 (예: 워크플로 이름 또는 프로젝트)
keystringYes-저장소 네임스페이스 (예: 워크플로 이름 또는 프로젝트)
defaultanyNo-검색할 키

Output:

FieldTypeDescription
okboolean키가 존재하지 않을 경우 반환할 값
foundboolean작업이 성공했는지 여부
valueany작업이 성공했는지 여부
keystring키가 발견되었는지 여부(만료되지 않음)

Example: Get last BTC price

yaml
namespace: crypto-alerts
key: btc_last_price
default: 0

Example: Get workflow state

yaml
namespace: my-workflow
key: last_run_status

값 저장

storage.set

영구 키-값 저장소에 값을 저장합니다

Parameters:

NameTypeRequiredDefaultDescription
namespacestringYesdefault저장소 네임스페이스 (예: 워크플로 이름 또는 프로젝트)
keystringYes-저장소 네임스페이스 (예: 워크플로 이름 또는 프로젝트)
valueanyYes-값을 저장할 키
ttl_secondsnumberNo0Time to live in seconds (optional, 0 = no expiration)

Output:

FieldTypeDescription
okboolean초 단위의 수명 (선택 사항, 0 = 만료 없음)
keystring작업이 성공했는지 여부
stored_atnumber작업이 성공했는지 여부
expires_atnumber저장된 키

Example: Store BTC price

yaml
namespace: crypto-alerts
key: btc_last_price
value: 42350.5

Example: Store with expiration

yaml
namespace: cache
key: api_response
value: {"data": "cached"}
ttl_seconds: 3600

Released under the Apache 2.0 License.