diff options
author | vnugent <public@vaughnnugent.com> | 2024-02-02 21:14:19 -0500 |
---|---|---|
committer | vnugent <public@vaughnnugent.com> | 2024-02-02 21:14:19 -0500 |
commit | 52645b724834e669788a45edb9d135f243432540 (patch) | |
tree | 56a5ea56fdf339f00934b3e4cd88212ea3608b29 /back-end/src/Cache/UserSettingsStore.cs | |
parent | dd5e5164262c5ff7ecf6db1003d41d81e6364c09 (diff) |
download file formats, button tweaks, more cache infra
Diffstat (limited to 'back-end/src/Cache/UserSettingsStore.cs')
-rw-r--r-- | back-end/src/Cache/UserSettingsStore.cs | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/back-end/src/Cache/UserSettingsStore.cs b/back-end/src/Cache/UserSettingsStore.cs index 51d47ff..8887973 100644 --- a/back-end/src/Cache/UserSettingsStore.cs +++ b/back-end/src/Cache/UserSettingsStore.cs @@ -14,11 +14,6 @@ // along with this program. If not, see <https://www.gnu.org/licenses/>. -using System; -using System.Buffers; - -using MemoryPack; - using VNLib.Plugins; using VNLib.Plugins.Extensions.Loading; using VNLib.Data.Caching; @@ -27,6 +22,7 @@ using VNLib.Plugins.Extensions.VNCache.DataModel; namespace SimpleBookmark.Cache { + [ConfigurationName("settings")] internal sealed class UserSettingsStore { @@ -47,16 +43,6 @@ namespace SimpleBookmark.Cache Cache = cache.GetPrefixedCache(prefix) .CreateEntityCache<UserSettings>(serializer, serializer); } - - } - - private sealed class MemPackCacheSerializer(MemoryPackSerializerOptions? options) : ICacheObjectSerializer, ICacheObjectDeserializer - { - ///<inheritdoc/> - public T? Deserialize<T>(ReadOnlySpan<byte> objectData) => MemoryPackSerializer.Deserialize<T>(objectData, options); - - ///<inheritdoc/> - public void Serialize<T>(T obj, IBufferWriter<byte> finiteWriter) => MemoryPackSerializer.Serialize(finiteWriter, obj, options); } } } |