Skip to content
This repository was archived by the owner on Dec 24, 2022. It is now read-only.

Commit 41caad4

Browse files
committed
Remove deprecated methods + update SS.Interfaces.dll
1 parent 0c180c7 commit 41caad4

File tree

4 files changed

+0
-40
lines changed

4 files changed

+0
-40
lines changed

lib/net45/ServiceStack.Interfaces.dll

512 Bytes
Binary file not shown.
512 Bytes
Binary file not shown.

src/ServiceStack.Redis/Generic/RedisTypedClient.cs

-21
Original file line numberDiff line numberDiff line change
@@ -190,12 +190,6 @@ public void SetValue(string key, T entity)
190190
client.RegisterTypeId(entity);
191191
}
192192

193-
[Obsolete("Use SetValue()")]
194-
public void SetEntry(string key, T value)
195-
{
196-
SetValue(key, value);
197-
}
198-
199193
public void SetValue(string key, T entity, TimeSpan expireIn)
200194
{
201195
if (key == null)
@@ -205,25 +199,13 @@ public void SetValue(string key, T entity, TimeSpan expireIn)
205199
client.RegisterTypeId(entity);
206200
}
207201

208-
[Obsolete("Use SetValue()")]
209-
public void SetEntry(string key, T value, TimeSpan expireIn)
210-
{
211-
SetValue(key, value, expireIn);
212-
}
213-
214202
public bool SetValueIfNotExists(string key, T entity)
215203
{
216204
var success = client.SetNX(key, SerializeValue(entity)) == RedisNativeClient.Success;
217205
if (success) client.RegisterTypeId(entity);
218206
return success;
219207
}
220208

221-
[Obsolete("Use SetValueIfNotExists()")]
222-
public bool SetEntryIfNotExists(string key, T value)
223-
{
224-
return SetValueIfNotExists(key, value);
225-
}
226-
227209
public bool SetValueIfExists(string key, T entity)
228210
{
229211
var success = client.Set(key, SerializeValue(entity), exists:true);
@@ -525,8 +507,5 @@ internal void EndPipeline()
525507
{
526508
client.EndPipeline();
527509
}
528-
529-
[Obsolete("Does nothing currently, RedisTypedClient will not be IDisposable in a future version")]
530-
public void Dispose() { }
531510
}
532511
}

src/ServiceStack.Redis/RedisClient.cs

-19
Original file line numberDiff line numberDiff line change
@@ -120,25 +120,6 @@ public RedisText Custom(params object[] cmdWithArgs)
120120

121121
public List<string> GetAllKeys() => SearchKeys("*");
122122

123-
[Obsolete("Use SetValue()")]
124-
public void SetEntry(string key, string value) => SetValue(key, value);
125-
[Obsolete("Use SetValue()")]
126-
public void SetEntry(string key, string value, TimeSpan expireIn) => SetValue(key, value, expireIn);
127-
[Obsolete("Use SetValueIfExists()")]
128-
public bool SetEntryIfExists(string key, string value) => SetValueIfExists(key, value);
129-
[Obsolete("Use SetValueIfNotExists()")]
130-
public bool SetEntryIfNotExists(string key, string value) => SetValueIfNotExists(key, value);
131-
[Obsolete("Use SetValueIfExists()")]
132-
public bool SetEntryIfExists(string key, string value, TimeSpan expireIn) => SetValueIfExists(key, value, expireIn);
133-
[Obsolete("Use SetValueIfNotExists()")]
134-
public bool SetEntryIfNotExists(string key, string value, TimeSpan expireIn) => SetValueIfNotExists(key, value, expireIn);
135-
[Obsolete("Use GetClientsInfo")]
136-
public List<Dictionary<string, string>> GetClientList() => GetClientsInfo();
137-
[Obsolete("Use GetValue()")]
138-
public string GetEntry(string key) => GetValue(key);
139-
[Obsolete("Use GetAndSetValue()")]
140-
public string GetAndSetEntry(string key, string value) => GetAndSetValue(key, value);
141-
142123
public void SetValue(string key, string value)
143124
{
144125
var bytesValue = value != null

0 commit comments

Comments
 (0)