title: Xamarin Forms: Is it possible to save and retrieve an EpubBook data using SettingsPlugin?
body: <p>I am using <a href="https://github.com/jamesmontemagno/SettingsPlugin" rel="nofollow noreferrer">SettingsPlugin</a> for saving values to local DB. Using this plugin I have saved an <strong>EpubBook</strong> data like below:</p>
  <pre><code>CrossSettings.Current.AddOrUpdateValue(&quot;epub&quot;, epubBook.ToString());
  </code></pre>
  <p>Retrieved the value like below:</p>
  <pre><code>string epubString = CrossSettings.Current.GetValueOrDefault(&quot;epub&quot;, string.Empty);
  if (!string.IsNullOrWhiteSpace(epubString))
  {
      //Need to convert string epub data to EpubBook data
  }
  </code></pre>
  <p>I need to convert the string epub data to EpubBook? Is this possible? This is for caching the EpubBook data.</p>
  <p>I have done the same using <code>Application.Current.Properties</code> and saving and retrieving is working fine there. Please see below code:</p>
  <pre><code>//Saving value
  Application.Current.Properties[&quot;epub&quot;] = epubBook;
  //Retriving value
  EpubBook epubBook = (EpubBook)Application.Current.Properties[&quot;epub&quot;];
  </code></pre>
  <p>But the <code>Application.Current.Properties</code> values are clearing automatically after closing the app. That's why I start working on <code>SettingsPlugin</code>. So is there any way to save and retrieve an EpubBook using <code>SettingsPlugin</code>? If no suggests a way to caching the EpubBook data?</p>