<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: hlc0000</title>
    <description>The latest articles on DEV Community by hlc0000 (@hlc0000).</description>
    <link>https://dev.to/hlc0000</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F368345%2Fafc889f3-611b-4cb5-ac09-4f73c9d15161.png</url>
      <title>DEV Community: hlc0000</title>
      <link>https://dev.to/hlc0000</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/hlc0000"/>
    <language>en</language>
    <item>
      <title>A lightweight, thread safe general cache library developed with swift 5</title>
      <dc:creator>hlc0000</dc:creator>
      <pubDate>Tue, 19 May 2020 15:51:06 +0000</pubDate>
      <link>https://dev.to/hlc0000/a-lightweight-thread-safe-general-cache-library-developed-with-swift-5-35a2</link>
      <guid>https://dev.to/hlc0000/a-lightweight-thread-safe-general-cache-library-developed-with-swift-5-35a2</guid>
      <description>&lt;p&gt;Hello, I developed a lightweight general cache library with swift 5. If you happen to use swift to develop IOS projects, if you need to use the cache library, maybe you can try swiftlycache, which I developed, and maybe you will like it&lt;br&gt;
&lt;a href="https://github.com/hlc0000/SwiftlyCache"&gt;https://github.com/hlc0000/SwiftlyCache&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Thread safe IOS universal cache SwiftlyCache</title>
      <dc:creator>hlc0000</dc:creator>
      <pubDate>Fri, 17 Apr 2020 03:41:57 +0000</pubDate>
      <link>https://dev.to/hlc0000/thread-safe-ios-universal-cache-swiftlycache-3jmh</link>
      <guid>https://dev.to/hlc0000/thread-safe-ios-universal-cache-swiftlycache-3jmh</guid>
      <description>&lt;p&gt;In IOS development, cache is more or less used to reduce network requests. There are many cache frameworks developed with Objective-C on the network, but the cache framework developed by swift is relatively less. Swiftlycache is a cache framework developed by me(&lt;a href="https://github.com/hlc0000/SwiftlyCache"&gt;https://github.com/hlc0000/SwiftlyCache&lt;/a&gt;)&lt;/p&gt;

&lt;p&gt;Features:&lt;br&gt;
Support all data types complying with the codable protocol&lt;br&gt;
Objects can be evicted with least-recently-used algorithm&lt;br&gt;
It can be configured to automatically recycle objects or manually recycle objects when receiving memory warnings or when the application enters the background&lt;br&gt;
Using subscript can make reading and writing data more convenient&lt;br&gt;
Support reading data using sequence generator&lt;/p&gt;

&lt;p&gt;Division of responsibilities of members:&lt;br&gt;
Cacheware: it provides some basic interface protocols. Multicache, memorycache, diskcache, etc. all abide by this protocol&lt;br&gt;
Multicache: multicache, call memorycache and diskcache related methods&lt;br&gt;
Memorycache: it is responsible for small capacity, relatively high-speed memory cache, thread safety, asynchronous operation, automatic and manual cache cleaning&lt;br&gt;
Memorystorage: the bidirectional linked list class used by memorycache&lt;br&gt;
Linkednode: double linked list node class&lt;br&gt;
Diskcache: responsible for handling large capacity, relatively low speed disk cache, thread safety, asynchronous operation support, automatic and manual cache cleaning&lt;br&gt;
Diskstorage: diskcache internal implementation class&lt;br&gt;
Diskstorageitem: used to load disk cache data&lt;/p&gt;

&lt;p&gt;If you are interested, you can go to my GitHub to learn more details. You can see the performance comparison between swiftlycache and other caches... If you can support it, it will be my great honor. Thank you&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
