dsteinbrunner / sys-ramdisk-perl Goto Github PK
View Code? Open in Web Editor NEWThis project forked from mschilli/sys-ramdisk-perl
Sys::Ramdisk CPAN Module
Home Page: http://perlmeister.com
This project forked from mschilli/sys-ramdisk-perl
Sys::Ramdisk CPAN Module
Home Page: http://perlmeister.com
###################################################################### Sys::Ramdisk 0.01 ###################################################################### NAME Sys::Ramdisk - Create and nuke RAM disks on various systems SYNOPSIS use Sys::Ramdisk; my $ramdisk = Sys::Ramdisk->new( size => "100m", dir => "/tmp/ramdisk", ); $ramdisk->mount(); # Use ramdisk on /tmp/ramdisk ... $ramdisk->unmount(); DESCRIPTION Most Unix systems provide RAM disks, although every OS/filesystem flavor seems to have its own interface to it. Sys::Ramdisk provides a system-agnostic interface to it, by abstracting the nitty gritty of the particular implementation. METHODS "new()" Constructor, optional arguments are "size" The size of the RAM disk, defaults to 100m. "dir" The directory the RAM disk is going to be mounted under, defaults to a temporary directory, created on demand and returned by the dir() method later "cleanup" Set this to true if you want the object destructor unmount the yroot when the object goes out of scope. Defaults to true. "mount()" Mount the RAM disk. "unmount()" Unmount the RAM disk. "dir()" Set or get the name of the directory the RAM disk will be mounted under. Note that some operating systems mount the RAM disk under a different directory nevertheless (e.g. OSX), make sure to check $ramdisk->dir() after running mount() to figure out where it actually landed. SUPPORTED OPERATING SYSTEMS Currently, only Linux and OSX are supported. LEGALESE Copyright 2010 by Mike Schilli, all rights reserved. This program is free software, you can redistribute it and/or modify it under the same terms as Perl itself. AUTHOR 2010, Mike Schilli <[email protected]>
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.