CachedContentItem
A context cache entry created by the Gemini Caching API
Inherits: EndPoint
Operations
GetCreateTime
Get creation timestamp
method : public : GetCreateTime() ~ StringReturn
| Type | Description |
|---|---|
| String | creation time (RFC 3339) |
GetDisplayName
Get display name
method : public : GetDisplayName() ~ StringReturn
| Type | Description |
|---|---|
| String | display name |
GetExpireTime
Get expiration timestamp
method : public : GetExpireTime() ~ StringReturn
| Type | Description |
|---|---|
| String | expiration time (RFC 3339) |
GetModel
Get the model this cache was created for
method : public : GetModel() ~ StringReturn
| Type | Description |
|---|---|
| String | model name |
GetName
Get cache resource name (e.g. "cachedContents/abc123")
method : public : GetName() ~ StringReturn
| Type | Description |
|---|---|
| String | resource name |
GetTokenCount
Get total token count stored in cache
method : public : GetTokenCount() ~ IntReturn
| Type | Description |
|---|---|
| Int | token count |