> For the complete documentation index, see [llms.txt](https://trillo.gitbook.io/trillo-workbench-python-sdk/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://trillo.gitbook.io/trillo-workbench-python-sdk/memory-cache/create-and-update-api.md).

# Create and Update API

## put

Store a key-value pair in the cache.

```
CacheApi.put(cacheName, key, value)
```

**Parameters**

```
cacheName: string
key: string
value: object
```

**Returns**

```
A Result object indicating the success or failure of the operation.
```

## putNoLock

Store a key-value pair in the cache without acquiring a lock.

```
Cache.putNoLock(cacheName, key, value)
```

**Parameters**

```
cacheName: string
key: string
value: object
```

**Returns**

```
A Result object indicating the success or failure of the operation.
```

## publishMessage

&#x20;Publish a message to a specified topic.

```
Cache.publishMessage(topic, message)
```

#### Parameters

```
topic: string
message: string
```

#### Returns

```
A Result object indicating the success or failure of the operation.
```
