diff --git a/Momento/Momento.cs b/Momento/Momento.cs
index f2a731d0..53bda108 100644
--- a/Momento/Momento.cs
+++ b/Momento/Momento.cs
@@ -37,7 +37,7 @@ public Momento(string authToken)
///
///
/// An instance of MomentoCache to perform sets and against against
- public MomentoCache CreateOrGetCache(String cacheName, uint defaultTtlSeconds)
+ public MomentoCache GetOrCreateCache(String cacheName, uint defaultTtlSeconds)
{
try
{
diff --git a/MomentoIntegrationTest/CacheTest.cs b/MomentoIntegrationTest/CacheTest.cs
index 5a01de09..7b2bed49 100644
--- a/MomentoIntegrationTest/CacheTest.cs
+++ b/MomentoIntegrationTest/CacheTest.cs
@@ -17,7 +17,7 @@ public void HappyPath()
String cacheValue = "some cache value";
uint defaultTtlSeconds = 10;
Momento momento = new Momento(authKey);
- MomentoCache cache = momento.CreateOrGetCache(cacheName, defaultTtlSeconds);
+ MomentoCache cache = momento.GetOrCreateCache(cacheName, defaultTtlSeconds);
cache.Set(cacheKey, cacheValue, defaultTtlSeconds);
CacheGetResponse result = cache.Get(cacheKey);
String stringResult = result.String();
@@ -31,7 +31,7 @@ public async void HappyPathExpiredTtl()
String cacheValue = "some cache value";
uint defaultTtlSeconds = 10;
Momento momento = new Momento(authKey);
- MomentoCache cache = momento.CreateOrGetCache(cacheName, defaultTtlSeconds);
+ MomentoCache cache = momento.GetOrCreateCache(cacheName, defaultTtlSeconds);
cache.Set(cacheKey, cacheValue, 1);
await Task.Delay(1100);
CacheGetResponse result = cache.Get(cacheKey);
@@ -45,7 +45,7 @@ public async void HappyPathAsync()
String cacheValue = "async cache value";
uint defaultTtlSeconds = 10;
Momento momento = new Momento(authKey);
- MomentoCache cache = momento.CreateOrGetCache(cacheName, defaultTtlSeconds);
+ MomentoCache cache = momento.GetOrCreateCache(cacheName, defaultTtlSeconds);
await cache.SetAsync(cacheKey, cacheValue, defaultTtlSeconds);
CacheGetResponse result = await cache.GetAsync(cacheKey);
Assert.Equal(MomentoCacheResult.Hit, result.Result);
@@ -57,7 +57,7 @@ public void HappyPathMiss()
{
uint defaultTtlSeconds = 10;
Momento momento = new Momento(authKey);
- MomentoCache cache = momento.CreateOrGetCache(cacheName, defaultTtlSeconds);
+ MomentoCache cache = momento.GetOrCreateCache(cacheName, defaultTtlSeconds);
CacheGetResponse result = cache.Get(Guid.NewGuid().ToString());
Assert.Equal(MomentoCacheResult.Miss, result.Result);
Assert.Null(result.String());