Skip to content

Commit

Permalink
chore: update sdk version
Browse files Browse the repository at this point in the history
  • Loading branch information
rishtigupta committed Oct 25, 2024
1 parent e705dc8 commit 0ad6e75
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions examples/composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"require": {
"momentohq/client-sdk-php": "dev-main",
"momentohq/client-sdk-php": "v1.14.0",
"monolog/monolog": "^2.5"
},
"minimum-stability": "dev"
}
}
4 changes: 2 additions & 2 deletions examples/sorted-set-example.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,9 @@ function printBanner(string $message, LoggerInterface $logger): void
exit(1);
}

// fetch sorted set by score (0 to -1 for all elements) in ascending order
// fetch sorted set by score (0 to 2) in ascending order
$logger->info("Fetching sorted set $SET_NAME by score\n");
$response = $client->sortedSetFetchByScore($CACHE_NAME, $SET_NAME, 0, -1);
$response = $client->sortedSetFetchByScore($CACHE_NAME, $SET_NAME, 0, 2);
if ($response->asHit()) {
$logger->info("SUCCESS: Sorted set $SET_NAME: " . implode(', ', $response->asHit()->valuesArray()) . "\n");
} elseif ($err = $response->asMiss()) {
Expand Down

0 comments on commit 0ad6e75

Please sign in to comment.