
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
react-native-localcache
Advanced tools
#react-native-localcache
本地缓存插件,可以在ios端进行查看容量,及清空缓存.
npm install --save react-native-localcache
import Localcache from 'react-native-localcache';
export default class extends Component {
constructor() {
super();
this.state = {};
}
componentDidMount() {
this.getData();
}
async getData() {
const _all = await Localcache.getSize();
this.setState({
all: Math.ceil(_all / 1024 / 1024 * 100) / 100
});
}
render(){
return(
<View style={styles.list}>
<Text style={styles.title}>{this.state.all}</Text>
</View>
)
}
}
const styles = StyleSheet.create({
list: {
backgroundColor: '#fff', marginBottom: 10
},
title: {color: '#666', padding: 10}
});
import Localcache from 'react-native-localcache';
获取所有缓存
清除所有缓存
清除http缓存
获取http缓存
清除图片缓存
获取图片缓存
FAQs
本地缓存插件,可以在ios端进行查看容量,及清空缓存.
We found that react-native-localcache demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.