[android][database] added `setPersistenceCacheSizeBytes(bytes: integer);`
This commit is contained in:
parent
dda01cd8cf
commit
a4ca30a66f
|
@ -71,6 +71,16 @@ public class RNFirebaseDatabase extends ReactContextBaseJavaModule {
|
|||
getDatabaseForApp(appName).setPersistenceEnabled(state);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param appName
|
||||
* @param size
|
||||
*/
|
||||
@ReactMethod
|
||||
public void setPersistenceCacheSizeBytes(String appName, int size) {
|
||||
getDatabaseForApp(appName).setPersistenceCacheSizeBytes((long) size);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @param enabled
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue