what is the purpose of metadata for key value pairs cloudflare? Why would you use that verses just u
what is the purpose of metadata for key value pairs cloudflare? Why would you use that verses just using a value?
list call, values cannot..00/million

kvOperationsAdaptiveGroups

list<token>
hello world 1<token>
hello world 1
<token>
hello world 2.00/millionkvOperationsAdaptiveGroupsimport { TokenManager, TokenType } from "@/managers/TokenManager";
export class VisionService {
constructor(private tokenManager: TokenManager) { }
async annotate() {
console.log('hello world 1')
const token = await this.tokenManager.get(TokenType.GOOGLE_CLOUD_VISION);
console.log(token);
console.log('hello world 2')
}
} const tokenManager = new TokenManager(c.env);
// Logs token from kv as expected
console.log(await tokenManager.get(TokenType.GOOGLE_CLOUD_VISION));
const visionService = new VisionService(tokenManager);
// Does not log token
visionService.annotate(){
viewer {
accounts(filter: {accountTag: "<accountId, right of workers & pages dash>"}) {
kvOperationsAdaptiveGroups(filter: { date_gt: "2024-08-01"}, limit: 100) {
dimensions {
namespaceId
}
sum {
requests
}
}
}
}
} {
"dimensions": {
"namespaceId": "b2a58c72fd564bc884d506f4c6c99fed"
},
"sum": {
"requests": 82018
}
},
{
"dimensions": {
"namespaceId": "1213472aad494c65b6b3c330aaae0b14"
},
"sum": {
"requests": 327
}
},
{
"dimensions": {
"namespaceId": "c6a6c055efd741ccacee9916533e80da"
},
"sum": {
"requests": 1214719
}