microsoft-authentication-library-common-for-android icon indicating copy to clipboard operation
microsoft-authentication-library-common-for-android copied to clipboard

Modified base class for BrokerAppMetadata cache. Implemented as sing…

Open shoatman opened this issue 4 years ago • 2 comments

  • Added ReentrantReadWriteLock to base class
  • Added member variable to in-memory list to reduce the number of times reading from SharedPreferences and deserializing from JSON
  • Added readLock around read operations
  • Added writeLock around update/remove/clear operations
  • Converted getAll to use a copy constructor and return a copy of the in-memory list/set

shoatman avatar Nov 19 '21 23:11 shoatman

@tanmaymanolkar1 - Can you take a look at this PR as discussed and propose some tests for this work. Thanks

shoatman avatar Dec 06 '21 21:12 shoatman

Will have look at it @shoatman, thanks for working on this fix :)

tanmaymanolkar1 avatar Dec 07 '21 00:12 tanmaymanolkar1