microsoft-authentication-library-common-for-android
microsoft-authentication-library-common-for-android copied to clipboard
Modified base class for BrokerAppMetadata cache. Implemented as sing…
- 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
@tanmaymanolkar1 - Can you take a look at this PR as discussed and propose some tests for this work. Thanks
Will have look at it @shoatman, thanks for working on this fix :)