Skip to content

Commit

Permalink
Merge pull request #757 from cristim/valkey
Browse files Browse the repository at this point in the history
Add Valkey engine pricing data for Elasticache
  • Loading branch information
brookemckim authored Dec 13, 2024
2 parents 4022ffc + ceb85d8 commit 44e9bf6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions detail_pages_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
cache_engine_mapping = {
"Memcached": "Memcached",
"Redis": "Redis",
"Valkey": "Valkey",
}


Expand Down
4 changes: 2 additions & 2 deletions in/cache.html.mako
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@
<abbr title="Each virtual CPU is a hyperthread of an Intel Xeon core for M3, C4, C3, R3, HS1, G2, I2, and D2">vCPUs</abbr>
</th>
<th class="networkperf">Network Performance</th>
% for cache_engine in {'Redis', 'Memcached'}:
% for cache_engine in {'Redis', 'Memcached', 'Valkey'}:
% if cache_engine == 'Redis':
<th class="cost-ondemand cost-ondemand-${cache_engine} all" data-priority="1">${cache_engine} Cost</th>
% else:
Expand Down Expand Up @@ -171,7 +171,7 @@
${inst['network_performance']}
</span>
</td>
% for cache_engine in {'Redis', 'Memcached'}:
% for cache_engine in {'Redis', 'Memcached', 'Valkey'}:
<td class="cost-ondemand cost-ondemand-${cache_engine}" data-platform='${cache_engine}' data-vcpu='${inst['vcpu']}' data-memory='${inst['memory']}'>
% if inst['pricing'].get('us-east-1', {}).get(cache_engine, {}).get('ondemand', 'N/A') != "N/A":
<span sort="${inst['pricing']['us-east-1'][cache_engine]['ondemand']}">
Expand Down
3 changes: 2 additions & 1 deletion in/instance-type-cache.html.mako
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,8 @@
<div class="col-6 mb-2">
<select class="form-select form-select-sm" id="os">
<option value="Redis">Redis</option>
<option value="Memcached">Memcached</option>
<option value="Memcached">Memcached</option>
<option value="Valkey">Valkey</option>
</select>
</div>
<div class="col-6 pe-2">
Expand Down

0 comments on commit 44e9bf6

Please sign in to comment.