<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Python Maagic cache in NSO Developer Hub Discussions</title>
    <link>https://community.cisco.com/t5/nso-developer-hub-discussions/python-maagic-cache/m-p/3460509#M554</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;MAAPI isn't doing any caching, so one option would be to go there instead.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Each MAAGIC object starts without any cached value. Only when the value is actually accessed, MAAGIC will go and read the value, then keep the value within itself "in a cache". There is no (official) way to clear that value once it has been read, but obviously deleting the object will also remove the cached value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So with MAAGIC, you need to ensure you delete the objects that you no longer wish to know the value of.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 Sep 2017 12:15:17 GMT</pubDate>
    <dc:creator>Jan Lindblad</dc:creator>
    <dc:date>2017-09-26T12:15:17Z</dc:date>
    <item>
      <title>Python Maagic cache</title>
      <link>https://community.cisco.com/t5/nso-developer-hub-discussions/python-maagic-cache/m-p/3460508#M553</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When traversing the model tree, Maagic API (or Maapi underneath) stores all data in a cache, if there's alot of devices with bunch of configurations on them in NSO, and we're doing some complex operation where we have to go through most of the device model tree, this consumes too much memory. Is there a method to clear that cache?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Simon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Mar 2019 12:00:06 GMT</pubDate>
      <guid>https://community.cisco.com/t5/nso-developer-hub-discussions/python-maagic-cache/m-p/3460508#M553</guid>
      <dc:creator>sspehar</dc:creator>
      <dc:date>2019-03-01T12:00:06Z</dc:date>
    </item>
    <item>
      <title>Re: Python Maagic cache</title>
      <link>https://community.cisco.com/t5/nso-developer-hub-discussions/python-maagic-cache/m-p/3460509#M554</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;MAAPI isn't doing any caching, so one option would be to go there instead.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Each MAAGIC object starts without any cached value. Only when the value is actually accessed, MAAGIC will go and read the value, then keep the value within itself "in a cache". There is no (official) way to clear that value once it has been read, but obviously deleting the object will also remove the cached value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So with MAAGIC, you need to ensure you delete the objects that you no longer wish to know the value of.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Sep 2017 12:15:17 GMT</pubDate>
      <guid>https://community.cisco.com/t5/nso-developer-hub-discussions/python-maagic-cache/m-p/3460509#M554</guid>
      <dc:creator>Jan Lindblad</dc:creator>
      <dc:date>2017-09-26T12:15:17Z</dc:date>
    </item>
  </channel>
</rss>

